hello guys I am having hard time trying to have me...
# support
k
hello guys I am having hard time trying to have metrics for my mongo altas. I read I should use the public/private key I created on altas and configure it in the yalm and in the compose the environment variables? is the the actual way or am I totally off? thank you in advance for your time! Steps -> Congiture receiver and service in config.yalm and add the env variables in the compose, Add to my project in the instrumentation the MongoDBInstrumentation I do not see any errors I just do not get any metrics from the actual database when I am triggering my API
Copy code
receivers:
  mongodbatlas:
    public_key: ${MONGODB_ATLAS_PUBLIC_KEY}
    private_key: ${MONGODB_ATLAS_PRIVATE_KEY}
    project: Rsrvin
    granularity: PT1M
    log:
      enabled: true
      collect_audit_logs: false
exporters:
  otlp:
    endpoint: "<http://signoz-otel-collector:4317>"
  clickhousetraces:
    datasource: <tcp://clickhouse:9000/signoz_traces>
    low_cardinal_exception_grouping: ${env:LOW_CARDINAL_EXCEPTION_GROUPING}
  clickhousemetricswrite:
    endpoint: <tcp://clickhouse:9000/signoz_metrics>
    resource_to_telemetry_conversion:
      enabled: true
  clickhousemetricswrite/prometheus:
    endpoint: <tcp://clickhouse:9000/signoz_metrics>
  clickhouselogsexporter:
    dsn: <tcp://clickhouse:9000/signoz_logs>
    timeout: 10s
    use_new_schema: true
  # logging: {}

service:
  telemetry:
    logs:
      encoding: json
    metrics:
      address: 0.0.0.0:8888
  extensions:
    - health_check
    - zpages
    - pprof
  pipelines:
    traces:
      receivers: [jaeger, otlp]
      processors: [signozspanmetrics/cumulative, signozspanmetrics/delta, batch]
      exporters: [clickhousetraces]
    metrics:
      receivers: [otlp, mongodbatlas]
      processors: [batch]
      exporters: [clickhousemetricswrite, otlp]
    metrics/generic:
      receivers: [hostmetrics]
      processors: [resourcedetection, batch]
      exporters: [clickhousemetricswrite]
    metrics/prometheus:
      receivers: [prometheus]
      processors: [batch]
      exporters: [clickhousemetricswrite/prometheus]
    logs:
      receivers: [otlp, tcplog/docker, mongodbatlas]
      processors: [batch]
      exporters: [clickhouselogsexporter, otlp]