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 [2023/06/24 15:41] val [prometheus-node-exporter] |
сервис_prometheus [2023/06/24 16:10] val [prometheus-snmp-exporter] |
||
---|---|---|---|
Line 4: | Line 4: | ||
* [[https://habr.com/ru/company/southbridge/blog/455290/|Полное руководство по Prometheus в 2019 году]] | * [[https://habr.com/ru/company/southbridge/blog/455290/|Полное руководство по Prometheus в 2019 году]] | ||
* [[https://www.shellhacks.com/ru/prometheus-delete-time-series-metrics/|Prometheus: Удаление Метрик Временных Рядов]] | * [[https://www.shellhacks.com/ru/prometheus-delete-time-series-metrics/|Prometheus: Удаление Метрик Временных Рядов]] | ||
+ | * [[https://habr.com/ru/companies/tochka/articles/683608/|Человеческим языком про метрики]] | ||
===== Установка в Debian/Ubuntu ===== | ===== Установка в Debian/Ubuntu ===== | ||
Line 309: | Line 310: | ||
- 1.3.6.1.2.1.2.2.1.2 | - 1.3.6.1.2.1.2.2.1.2 | ||
metrics: | metrics: | ||
- | - name: if_in_octets | + | - name: ifInOctets |
oid: 1.3.6.1.2.1.2.2.1.10 | oid: 1.3.6.1.2.1.2.2.1.10 | ||
type: counter | type: counter | ||
Line 321: | Line 322: | ||
oid: 1.3.6.1.2.1.2.2.1.2 | oid: 1.3.6.1.2.1.2.2.1.2 | ||
type: DisplayString | type: DisplayString | ||
- | - name: if_out_octets | + | - name: ifOutOctets |
oid: 1.3.6.1.2.1.2.2.1.16 | oid: 1.3.6.1.2.1.2.2.1.16 | ||
type: counter | type: counter | ||
Line 364: | Line 365: | ||
<code> | <code> | ||
- | rate(if_in_octets{ifDescr="FastEthernet1/1",ifIndex="3",instance="router",job="snmp"}[1m]) | + | rate(ifInOctets{ifDescr="FastEthernet1/1",ifIndex="3",instance="router",job="snmp"}[1m]) |
или | или | ||
- | rate(if_out_octets{ifIndex="5",instance="router",job="snmp"}[1m]) | + | rate(ifOutOctets{ifIndex="5",instance="router",job="snmp"}[1m]) |
- | 8*rate(if_in_octets{ifDescr="FastEthernet1/1",instance="router"}[1m]) | + | 8*rate(ifInOctets{ifDescr="FastEthernet1/1",instance="router"}[1m]) |
или | или | ||
- | 8*rate(if_out_octets{ifDescr="Port-channel1",instance="router"}[1m]) | + | 8*rate(ifOutOctets{ifDescr="Port-channel1",instance="router"}[1m]) |
</code> | </code> | ||