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

Handle NaNs in prometheus metrics #10849

Closed
jsoriano opened this issue Feb 20, 2019 · 1 comment · Fixed by #12084
Closed

Handle NaNs in prometheus metrics #10849

jsoriano opened this issue Feb 20, 2019 · 1 comment · Fixed by #12084
Assignees
Labels
bug Metricbeat Metricbeat module Team:Integrations Label for the Integrations team

Comments

@jsoriano
Copy link
Member

Prometheus metrics can contain NaN/+Inf/-Inf values, they fail to be serialized for outputs.

Seen at least with file and kafka outputs with metricbeat 6.6.0.

@pawelprazak
Copy link

pawelprazak commented May 17, 2019

Can confirm for v6.7.2, v7.0.1, v7.1.0 with this settings:

    - module: prometheus
      period: 10s
      host: ${NODE_NAME}
      hosts: ["prometheus.monitoring.svc.cluster.local:9090"]
      namespace: monitoring
      metrics_path: '/federate'
      query:
        'match[]': '{__name__!=""}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Metricbeat Metricbeat module Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants