packet:linbpq_monitoring
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| packet:linbpq_monitoring [2024/05/14 17:44] – [Telegraf / Grafana] m0lte | packet:linbpq_monitoring [2024/05/15 10:05] (current) – [Prometheus] remove note about sysUpTime 2m0mqn | ||
|---|---|---|---|
| Line 152: | Line 152: | ||
| </ | </ | ||
| - | These counters show up in InfluxDB under a measurement named SNMP with multiple fields, one for each oid. | + | These counters show up in InfluxDB under a measurement named SNMP with multiple fields, one for each oid. You get a counter update every 10 seconds. |
| Query like this: | Query like this: | ||
| Line 161: | Line 161: | ||
| {{: | {{: | ||
| + | |||
| + | ===== Prometheus ===== | ||
| + | |||
| + | It's also quite easy to get prometheus-snmp-exporter to collect stats from BPQ. | ||
| + | |||
| + | Add something like the following to your generator.yml | ||
| + | |||
| + | < | ||
| + | linbpq: | ||
| + | walk: | ||
| + | - 1.3.6.1.2.1.1.3.0 | ||
| + | - 1.3.6.1.2.1.1.5 | ||
| + | - 1.3.6.1.2.1.2.2.1.10.1 | ||
| + | - 1.3.6.1.2.1.2.2.1.16.1 | ||
| + | version: 1 | ||
| + | auth: | ||
| + | community: public | ||
| + | </ | ||
| + | |||
| + | Repeat the 1.3.6.1.2.1.2.2.1.10.X and 1.3.6.1.2.1.2.2.1.16.X lines for each of your ports, then run prometheus-snmp-generator generate to regenerate your configuration. | ||
| + | |||
| + | You'll likely already have an snmp scrape configuration in your prometheus.yml. | ||
| + | Add the linbpq module (as defined above) and the target address of your BPQ node to it. | ||
| + | The result will look something like this: | ||
| + | |||
| + | < | ||
| + | - job_name: ' | ||
| + | scrape_interval: | ||
| + | scrape_timeout: | ||
| + | metrics_path: | ||
| + | params: | ||
| + | module: [linbpq] | ||
| + | static_configs: | ||
| + | - targets: | ||
| + | - packet.example.org: | ||
| + | relabel_configs: | ||
| + | - source_labels: | ||
| + | target_label: | ||
| + | - source_labels: | ||
| + | target_label: | ||
| + | - target_label: | ||
| + | replacement: | ||
| + | </ | ||
| + | |||
| + | After restarting prometheus-snmp-exporter and prometheus you should start seeing ifInOctets, ifOutOctets, | ||
| + | |||
packet/linbpq_monitoring.1715708653.txt.gz · Last modified: by m0lte
