This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
сервис_prometheus [2024/06/18 16:07] val [prometheus-snmp-exporter] |
сервис_prometheus [2024/06/27 08:01] val [prometheus-snmp-exporter] |
||
---|---|---|---|
Line 296: | Line 296: | ||
* [[https://blogspot.sysadm.kz/2018/07/grafana-prometheus-cisco-snmp.html|Grafana + Prometheus мониторинг траффика Cisco SNMP]] | * [[https://blogspot.sysadm.kz/2018/07/grafana-prometheus-cisco-snmp.html|Grafana + Prometheus мониторинг траффика Cisco SNMP]] | ||
* [[https://medium.com/@openmohan/snmp-monitoring-and-easing-it-with-prometheus-b157c0a42c0c|SNMP monitoring and easing it with Prometheus]] | * [[https://medium.com/@openmohan/snmp-monitoring-and-easing-it-with-prometheus-b157c0a42c0c|SNMP monitoring and easing it with Prometheus]] | ||
+ | * [[https://grafana.com/blog/2022/02/01/an-advanced-guide-to-network-monitoring-with-grafana-and-prometheus/|An advanced guide to network monitoring with Grafana and Prometheus]] | ||
<code> | <code> | ||
Line 306: | Line 307: | ||
# cat /etc/prometheus/snmp.yml | # cat /etc/prometheus/snmp.yml | ||
</code><code> | </code><code> | ||
- | #if_mib: # по умолчанию, позволяет не указывать module в http запросе | + | auths: |
- | snmp_in_out_octets: | + | public_v2: |
- | version: 2 | + | |
- | auth: | + | |
community: public | community: public | ||
- | walk: | + | version: 2 |
- | - 1.3.6.1.2.1.2.2.1.10 | + | modules: |
- | - 1.3.6.1.2.1.2.2.1.16 | + | if_mib: |
- | - 1.3.6.1.2.1.2.2.1.2 | + | walk: |
- | metrics: | + | - 1.3.6.1.2.1.2.2.1.10 |
- | - name: ifInOctets | + | - 1.3.6.1.2.1.2.2.1.16 |
- | oid: 1.3.6.1.2.1.2.2.1.10 | + | - 1.3.6.1.2.1.2.2.1.2 |
- | type: counter | + | metrics: |
- | indexes: | + | - name: ifInOctets |
- | - labelname: ifIndex | + | oid: 1.3.6.1.2.1.2.2.1.10 |
- | type: Integer | + | type: counter |
- | lookups: | + | indexes: |
- | - labels: | + | - labelname: ifIndex |
- | - ifIndex | + | type: Integer |
- | labelname: ifDescr | + | lookups: |
- | oid: 1.3.6.1.2.1.2.2.1.2 | + | - labels: |
- | type: DisplayString | + | - ifIndex |
- | - name: ifOutOctets | + | labelname: ifDescr |
- | oid: 1.3.6.1.2.1.2.2.1.16 | + | oid: 1.3.6.1.2.1.2.2.1.2 |
- | type: counter | + | type: DisplayString |
- | indexes: | + | - name: ifOutOctets |
- | - labelname: ifIndex | + | oid: 1.3.6.1.2.1.2.2.1.16 |
- | type: Integer | + | type: counter |
- | lookups: | + | indexes: |
- | - labels: | + | - labelname: ifIndex |
- | - ifIndex | + | type: Integer |
- | labelname: ifDescr | + | lookups: |
- | oid: 1.3.6.1.2.1.2.2.1.2 | + | - labels: |
- | type: DisplayString | + | - ifIndex |
+ | labelname: ifDescr | ||
+ | oid: 1.3.6.1.2.1.2.2.1.2 | ||
+ | type: DisplayString | ||
</code> | </code> | ||