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

Missing data from snmp_exporter output in prometheus #101

Closed
HyperDevil opened this issue Jan 1, 2017 · 5 comments
Closed

Missing data from snmp_exporter output in prometheus #101

HyperDevil opened this issue Jan 1, 2017 · 5 comments

Comments

@HyperDevil
Copy link

HyperDevil commented Jan 1, 2017

Hi,

Using this command: curl localhost:9116/snmp?target=10.0.1.1&module=mikrotik_routeros
Template: #76
i get this output:

HELP snmp_scrape_duration_seconds Total SNMP time scrape took (walk and processing).
TYPE snmp_scrape_duration_seconds gauge
snmp_scrape_duration_seconds 0.36220480000000005
HELP snmp_scrape_pdus_returned PDUs returned from walk.
TYPE snmp_scrape_pdus_returned gauge
snmp_scrape_pdus_returned 557
HELP snmp_scrape_walk_duration_seconds Time SNMP walk/bulkwalk took.
TYPE snmp_scrape_walk_duration_seconds gauge
snmp_scrape_walk_duration_seconds 0.35507961200000004
HELP sysUpTime
TYPE sysUpTime untyped
sysUpTime 5.626565e+08

In Prometheus the sysUpTime value is not found, is this because the + sign is a string?

@SuperQ
Copy link
Member

SuperQ commented Jan 1, 2017

No, 5.626565e+08 looks like a proper float to me. There may be something else going on.

@HyperDevil
Copy link
Author

HyperDevil commented Jan 1, 2017

This is the prometheus config:

- job_name: 'snmp_mikrotik'
   metrics_path: /snmp
   static_configs:
     - targets:
       - 10.0.1.1
       labels:
         alias: router
   params:
     module: [mikrotik_routeros]
   relabel_configs:
     - source_labels: [__address__]
       target_label: __param_target
     - source_labels: [__param_target]
       target_label: instance
     - target_label: __address__
       replacement: localhost:9116

@brian-brazil
Copy link
Contributor

That all looks correct, do you have further debugging information?

@astateofmind01
Copy link

Have the same problem, any updates?

@brian-brazil
Copy link
Contributor

It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided.

@prometheus prometheus locked as resolved and limited conversation to collaborators Jul 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants