Page MenuHomePhabricator

prometheus support
Open, WishlistPublicFEATURE REQUEST

Description

Is that possible add prmetheus monitoring support to vyos?

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close

Event Timeline

dongjunbo created this task.Nov 7 2018, 1:50 AM
syncer triaged this task as Wishlist priority.
Raeven added a subscriber: Raeven.Dec 15 2018, 4:19 PM
albeu added a subscriber: albeu.Feb 18 2019, 12:00 PM
pasik added a subscriber: pasik.Mar 12 2019, 6:08 PM

You can scrap SNMP to prometheus. Not sure if you want any gauges not covered by snmp

https://wiki.vyos.net/wiki/SNMP

install snmp-exporter
/etc/prometheus/prometheus.yml :
...
scrape_configs:
  - job_name: 'snmp'
    static_configs:
    - targets:
      - 10.11.22.33
    metrics_path: /snmp
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        replacement: 127.0.0.1:9116  # The SNMP exporter's real hostname:port.
...
albeu added a comment.Jun 5 2019, 7:00 AM

SNMP can be used as a workaround, but it is not suitable for much more than a couple metrics because is it very inefficient. Moreover the prometheus node exporter provide many more metrics out of the box.