Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Monium
  • Getting started
  • Overview
  • Access management
  • Pricing policy
  • Terraform reference
  • Release notes

In this article:

  • Get your cloud ready
  • Create a service account and API key
  • Set up telemetry data transfer from your app
  • Monium connection settings and data distribution
  • View the data in Monium
  • Example of demo app setup

Getting started with Monium

Written by
Yandex Cloud
Updated at February 26, 2026
  • Get your cloud ready
  • Create a service account and API key
  • Set up telemetry data transfer from your app
  • Monium connection settings and data distribution
  • View the data in Monium
  • Example of demo app setup

Monium is a platform made to collect telemetry data (metrics, logs, and traces) from Yandex Cloud, other clouds, or your local infrastructure.

Follow this guide to send telemetry data from your app or demo app via OTel Collector and view it in Monium.

To get started:

  1. Get your cloud ready.

  2. Create a service account and API key.

  3. Set up telemetry data transfer from your app or demo app.

    If OTLP telemetry is already configured, specify Monium connection settings.

  4. View the data in Monium.

Get your cloud readyGet your cloud ready

Management console
  1. Log in to the management console or sign up. If not signed up yet, navigate to the management console and follow the instructions.

  2. On the Yandex Cloud Billing page, make sure you have a linked billing account with the ACTIVE or TRIAL_ACTIVE status. If you do not have a billing account yet, create one.

    If you have an active billing account, you can navigate to the cloud page to create or select a folder for your infrastructure.

    Learn more about clouds and folders here.

Create a service account and API keyCreate a service account and API key

Management console
  1. In the management console, navigate to the folder where you want to store your telemetry.
  2. Go to Identity and Access Management.
  3. Click Create service account.
  4. Enter a name for the service account, e.g., monium-ca.
  5. Click Add role and add monium.telemetry.writer.
    If you want to transfer only a specific data type, you can select other roles: monium.metrics.writer, monium.logs.writer, or monium.traces.writer.
  6. Click Create.
  7. Select the account you created from the list.
  8. In the top panel, click Create new key and select Create API key.
  9. Select Scope: yc.monitoring.manage, yc.monium.telemetry.write.
  10. Optionally, specify Expires at.
  11. Click Create.
  12. Save the secret key for the next step.

Set up telemetry data transfer from your appSet up telemetry data transfer from your app

If you do not have a ready-to-use application, configure a demo app.

In Monium, telemetry follows this hierarchy: project → cluster → service. The data is distributed among shards for each service-cluster pair.

Your infrastructure
  1. Set these environment variables:

    • MONIUM_PROJECT: Monium project name in folder__<folder_ID> format, e.g., folder__b1g86q4m5vej********.
    • MONIUM_API_KEY: API key.
  2. Set up telemetry from your application in OTLP format:

    • Install the auto-instrumentation agent to automatically collect some telemetry data and send it to OTLP.
    • Add the OpenTelemetry SDK to your app.
  3. Install OTel Collector.

    You can send data to Monium directly from the OpenTelemetry SDK, without using the agent.

  4. In the otel-collector.yaml configuration file, configure data transfer to Monium.

    Example of a minimal otel-collector.yaml configuration:

    receivers:       
      otlp:          # Target type: OTLP
        protocols:   # Protocols that OTel Collector listens to
          grpc:      # gRPC, default port 4317
          http:      # HTTP, default port 4318
    
    processors:
      cumulativetodelta:
      batch:
    
    exporters:       # Connecting to Monium
      otlp/monium:
        compression: zstd
        endpoint: ingest.monium.yandex.cloud:443
        headers:
          Authorization: "Api-Key ${env:MONIUM_API_KEY}"
          x-monium-project: "${env:MONIUM_PROJECT}"
    
    service:         
      pipelines:
        metrics:                 # Transferring metrics
          receivers: [ otlp ]
          processors: [ batch, cumulativetodelta ]
          exporters: [ otlp/monium ]
        traces:                  # Transferring traces
          receivers: [ otlp ]
          processors: [ batch ]
          exporters: [ otlp/monium ]
        logs:                    # Transferring logs
          receivers: [ otlp ]
          processors: [ batch ]
          exporters: [ otlp/monium ]
    
    otel-collector.yaml section description
    • receivers: Sets otlp (OpenTelemetry Protocol) as receiver type, and grpc and http as receiving protocols. You can specify ports if using non-default ones.

    • processors: Enables cumulativetodeltaprocessor to provide monotonically increasing sums as a RATE type metric.

    • exporters: Monium settings:

      • endpoint: Data endpoint, ingest.monium.yandex.cloud:443.
      • Authorization: API key from the MONIUM_API_KEY variable.
      • x-monium-project: Project name from the MONIUM_PROJECT variable.
      • compression: zstd data compression type to reduce CPU consumption compared to the default gzip method. This is an optional setting.
    • service > pipelines: Properties of the channels for receiving and sending each data type to Monium: metrics, logs, and traces. You can specify only the data types you need.

  5. Set the environment variables to distribute data across shards in Monium:

    • OTEL_SERVICE_NAME: Name of your application or service.
    • OTEL_RESOURCE_ATTRIBUTES="cluster=my-cluster": Name of the installation the application operates in, e.g., production or test environment. This is an optional setting. The default value is cluster=default.
  6. Run your app and start sending telemetry.

Monium connection settings and data distributionMonium connection settings and data distribution

If your application is already configured to send telemetry data, specify these settings:

  • Authentication: API key.
  • Endpoint: ingest.monium.yandex.cloud:443.
  • In the header: x-monium-project=folder__<folder_ID> parameter.
  • In OTEL_RESOURCE_ATTRIBUTES: cluster or deployment.name and service or service.name.

Monium stores data in shards with the project, cluster, and service keys. The shard key is selected based on a priority table, with priority decreasing from left to right.

header resource attribute resource attribute constant
x-monium-project — — —
x-monium-cluster cluster deployment.name default
x-monium-service service service.name default

View the data in MoniumView the data in Monium

Management console
  1. On the Monium home page, select Shards on the left.

  2. In the list, select the shard with your service name.

    The shard name follows the <project_name>_<cluster_name>_<service_name> format, e.g., folder__b1g86q4m5vej********_default_spring-petclinic.

  3. To view a specific data type, on the left, select:

    • Metrics.

      In the query string, select project, cluster, and service in succession and click Execute query.
      Learn more about using metrics.

    • Logs.

      In the query string, select project, cluster, and service in succession and click Execute query.
      Learn more about using logs.

    • Traces.

      In the query string, select project and service in succession and click Execute.
      Learn more about using traces.

To use telemetry data, create a dashboard and alerts.

Example of demo app setupExample of demo app setup

In this example, you will install Spring PetClinic and set up telemetry to Monium.

Your infrastructure
  1. Install Git and Java suitable for your OS. Here is an example:

    sudo apt update
    sudo apt install -y git openjdk-17-jdk
    
  2. Download and install OTel Collector for your OS.

    We recommend to install OTel Collector version 0.144.0.

    wget https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v144.0/otelcol-linux_amd64.tar.gz
    tar xvf otelcol-linux_amd64.tar.gz
    
  3. Set these environment variables:

    export MONIUM_PROJECT=folder__<folder_ID>
    export MONIUM_API_KEY=<API_key>
    
  4. Create a file named stream_put_record.py and paste the following code to it:

    receivers:
      otlp:          
        protocols:   
          grpc:      
          http:      
    
    processors:
      cumulativetodelta:
      batch:
    
    exporters:       
      otlp/monium:
        compression: zstd
        endpoint: ingest.monium.yandex.cloud:443
        headers:
          Authorization: "Api-Key ${env:MONIUM_API_KEY}"
          x-monium-project: "${env:MONIUM_PROJECT}"
    
    service:         
      pipelines:
        metrics:                 
          receivers: [ otlp ]
          processors: [ batch, cumulativetodelta ]
          exporters: [ otlp/monium ]
        traces:                 
          receivers: [ otlp ]
          processors: [ batch ]
          exporters: [ otlp/monium ]
        logs:                   
          receivers: [ otlp ]
          processors: [ batch ]
          exporters: [ otlp/monium ]
    
  5. Run OTel Collector:

    ./otelcol-linux_amd64 --config otel-collector.yaml
    

    It will start listening on ports 4317 (gRPC) and 4318 (HTTP).

  6. Download and build Spring PetClinic:

    git clone https://github.com/spring-projects/spring-petclinic
    cd spring-petclinic
    ./mvnw -DskipTests package
    
  7. Download the OpenTelemetry Java agent:

    curl -L -o opentelemetry-javaagent.jar \
    https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar
    
  8. Set this environment variable:

    export OTEL_SERVICE_NAME=spring-petclinic
    
  9. Run the application with the Java agent to send telemetry to OTel Collector:

    java -javaagent:./opentelemetry-javaagent.jar -jar target/*.jar
    
  10. Open the Spring PetClinic website at http://localhost:8080 and simulate user actions.

  11. Look up the telemetry data in Monium.

What's nextWhat's next

  • Creating a dashboard
  • Creating an alert
  • Configuring data collection via an agent
  • Configuring logs
  • Configuring traces

Was the article helpful?

Next
Overview
© 2026 Direct Cursus Technology L.L.C.