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 [2022/03/10 16:04] val [prometheus-alertmanager] |
сервис_prometheus [2023/06/24 15:43] val [Сервис Prometheus] |
||
---|---|---|---|
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 132: | Line 133: | ||
==== prometheus-node-exporter ==== | ==== prometheus-node-exporter ==== | ||
- | * В Debian ставится как зависимость к пакету prometheus и добавлен в конфигурацию | + | * В Debian/Ubuntu ставится как зависимость к пакету prometheus и добавлен в конфигурацию |
* [[http://server.corpX.un:9100/metrics]] | * [[http://server.corpX.un:9100/metrics]] | ||
Line 149: | Line 150: | ||
== node_network_receive_bytes_total == | == node_network_receive_bytes_total == | ||
<code> | <code> | ||
- | $ cat /sys/class/net/eth1/statistics/rx_bytes | + | $ cat /sys/class/net/eth0/statistics/rx_bytes |
или | или | ||
$ cat /sys/class/net/bond0/statistics/rx_bytes | $ cat /sys/class/net/bond0/statistics/rx_bytes | ||
# TYPE node_network_receive_bytes_total counter | # TYPE node_network_receive_bytes_total counter | ||
- | node_network_receive_bytes_total{device="eth1"} | + | node_network_receive_bytes_total{device="bond0"} |
</code> | </code> | ||
Line 173: | Line 174: | ||
8*rate(node_network_receive_bytes_total[1m]) | 8*rate(node_network_receive_bytes_total[1m]) | ||
- | 8*rate(node_network_receive_bytes_total{device="eth1"}[1m]) | + | 8*rate(node_network_receive_bytes_total{device="bond0"}[1m]) |
- | 8*rate(node_network_receive_bytes_total{device="eth1",instance="localhost:9100",job="node"}[1m]) | + | 8*rate(node_network_receive_bytes_total{device="eth0",instance="localhost:9100",job="node"}[1m]) |
</code> | </code> | ||