Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[prometheusremotewrite] Otel keep sending metrics for 5 more minutes after last datapoint #28823

Closed
mpostument opened this issue Oct 31, 2023 · 6 comments
Labels
bug Something isn't working exporter/prometheusremotewrite needs triage New item requiring triage

Comments

@mpostument
Copy link

mpostument commented Oct 31, 2023

Component(s)

exporter/prometheusremotewrite

What happened?

Description

I was sending metrics to otel collector through otlp receiver and export them with prometheusremotewrite to Amazon Managed Prometheus. And after i stopped my agent for next 5 minutes i still saw metrics is sent to prometheus with values of last received datapoint

Steps to Reproduce

Send metrics to otlp receiver using telegraf
Stop telegraf

Expected Result

No metrics is exported to prometheus when agent is stopped

Actual Result

Metrics exported to prometheus for 5 more minutes when telegraf agent is stopped

Collector version

0.88.0

Environment information

Environment

EKS

OpenTelemetry Collector configuration

exporters:
  debug: {}
  elasticsearch/logv2:
    endpoints:
    - ENDPOINT
    logs_dynamic_index:
      enabled: true
    logs_index: otel-logs
    password: $ELASTIC_PASSWORD_V2
    user: $ELASTIC_USER_V2
  logging: {}
  otlp/o11yv2:
    endpoint: ENDPOINT
    tls:
      insecure_skip_verify: true
  prometheusremotewrite:
    auth:
      authenticator: sigv4auth
    endpoint: ENDPOINT/api/v1/remote_write
    resource_to_telemetry_conversion:
      enabled: true
    timeout: 30s
extensions:
  health_check: {}
  memory_ballast:
    size_in_percentage: 40
  sigv4auth:
    region: us-east-1
    service: aps
processors:
  attributes:
    actions:
    - action: insert
      key: env
      value: dev
  batch: {}
  memory_limiter:
    check_interval: 5s
    limit_percentage: 80
    spike_limit_percentage: 25
receivers:
  jaeger:
    protocols:
      grpc:
        endpoint: ${env:MY_POD_IP}:14250
      thrift_compact:
        endpoint: ${env:MY_POD_IP}:6831
      thrift_http:
        endpoint: ${env:MY_POD_IP}:14268
  otlp:
    protocols:
      grpc:
        endpoint: ${env:MY_POD_IP}:4317
        max_recv_msg_size_mib: 100
      http:
        endpoint: ${env:MY_POD_IP}:4318
  prometheus:
    config:
      scrape_configs:
      - job_name: opentelemetry-collector
        metric_relabel_configs:
        - replacement: gateway
          target_label: type
        scrape_interval: 10s
        static_configs:
        - targets:
          - ${MY_POD_IP}:8888
  zipkin:
    endpoint: ${env:MY_POD_IP}:9411
service:
  extensions:
  - sigv4auth
  - health_check
  pipelines:
    logs:
      exporters:
      - elasticsearch/logv2
      processors:
      - memory_limiter
      - batch
      - attributes
      receivers:
      - otlp
    metrics:
      exporters:
      - prometheusremotewrite
      processors:
      - memory_limiter
      - batch
      - attributes
      receivers:
      - otlp
      - prometheus
    traces:
      exporters:
      - otlp/o11yv2
      processors:
      - memory_limiter
      - batch
      - attributes
      receivers:
      - otlp
      - jaeger
      - zipkin
  telemetry:
    metrics:
      address: ${env:MY_POD_IP}:8888

Log output

No response

Additional context

No response

@mpostument mpostument added bug Something isn't working needs triage New item requiring triage labels Oct 31, 2023
@github-actions github-actions bot added the exporter/googlemanagedprometheus Google Managed Prometheus exporter label Oct 31, 2023
@github-actions
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@mpostument
Copy link
Author

/label -exporter/googlemanagedprometheus

@github-actions github-actions bot removed the exporter/googlemanagedprometheus Google Managed Prometheus exporter label Oct 31, 2023
@mpostument
Copy link
Author

/label exporter/prometheusremotewrite added wrong label

@github-actions
Copy link
Contributor

Pinging code owners for exporter/prometheusremotewrite: @Aneurysm9 @rapphil. See Adding Labels via Comments if you do not have permissions to add labels yourself.

@dashpole
Copy link
Contributor

See #27893 (comment)

@crobert-1
Copy link
Member

I'm going to close as a duplicate of #27893, but please let us know if this is incorrect or if you have any other questions.

@crobert-1 crobert-1 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working exporter/prometheusremotewrite needs triage New item requiring triage
Projects
None yet
Development

No branches or pull requests

3 participants