User Tools

Site Tools


сервис_prometheus

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
сервис_prometheus [2026/11/30 08:30]
val [Prometheus Federation]
сервис_prometheus [2026/12/02 16:39] (current)
val [Создание правил alertmanager]
Line 7: Line 7:
   * [[https://​selectel.ru/​blog/​tutorials/​monitoring-in-k8s-with-prometheus/​|Мониторинг в K8s с помощью Prometheus]]   * [[https://​selectel.ru/​blog/​tutorials/​monitoring-in-k8s-with-prometheus/​|Мониторинг в K8s с помощью Prometheus]]
   * [[https://​www.dmosk.ru/​instruktions.php?​object=prometheus-linux|Установка Prometheus + Alertmanager + node_exporter на Linux]]   * [[https://​www.dmosk.ru/​instruktions.php?​object=prometheus-linux|Установка Prometheus + Alertmanager + node_exporter на Linux]]
 +
 +  * [[https://​habr.com/​ru/​companies/​rkt/​articles/​1111642/​|Сотни алертов в день: почему дежурные перестают их читать]]
  
 ===== Установка в Debian/​Ubuntu ===== ===== Установка в Debian/​Ubuntu =====
Line 86: Line 88:
 ==== Prometheus Federation ==== ==== Prometheus Federation ====
 <​code>​ <​code>​
-prom.isp.un#​ curl -G '​http://​192.168.X.10:​9090/​federate' ​  ​--data-urlencode '​match[]={__name__=~"​node_filesystem_free_bytes|windows_logical_disk_free_bytes"​}'​+prom.isp.un#​ curl -sG '​http://​192.168.X.10:​9090/​federate'​\ 
 +  ​--data-urlencode '​match[]={__name__=~"​.*"​}' ​ # |wc-l
  
 prom.isp.un#​ cat /​etc/​prometheus/​prometheus.yml prom.isp.un#​ cat /​etc/​prometheus/​prometheus.yml
Line 106: Line 109:
 </​code>​ </​code>​
  
-==== Prometheus ​remote write ====+==== Prometheus ​Remote Write ====
 <​code>​ <​code>​
 prom.isp.un#​ cat /​etc/​default/​prometheus prom.isp.un#​ cat /​etc/​default/​prometheus
Line 239: Line 242:
 #    annotations:​ #    annotations:​
 #      summary: "​Сервис Roundcube не доступен"​ #      summary: "​Сервис Roundcube не доступен"​
-#      dashboard_url:​ "​http://​server.corpX.un:​3000/​n/​nnnnnnnn/​mail-app"+#      dashboard_url:​ "​http://​server.corpX.un:​3000/​n/​nnnnnnnn/​monitoring-servisa-roundcube"
 </​code>​ </​code>​
  
Line 277: Line 280:
   * Поле annotations.dashboard форматируется как гиперссылка   * Поле annotations.dashboard форматируется как гиперссылка
 <​code>​ <​code>​
-cat /​etc/​prometheus/​alertmanager_templates/​minimal_link.tmpl/+cat /​etc/​prometheus/​alertmanager_templates/​minimal_link.tmpl
 </​code><​code>​ </​code><​code>​
 {{ define "​email.default.html"​ }} {{ define "​email.default.html"​ }}
Line 370: Line 373:
  
   * Счетчики (Counters) ​   * Счетчики (Counters) ​
 +  * набор значений за период (range vector): node_network_receive_bytes_total[1m]
 <​code>​ <​code>​
 8*rate(node_network_receive_bytes_total[1m]) 8*rate(node_network_receive_bytes_total[1m])
Line 463: Line 466:
  
 <​code>​ <​code>​
 +# curl "​http://​localhost:​9115/​probe?​target=val.bmstu.ru&​module=http_2xx"​
 +
 probe_success... probe_success...
  
сервис_prometheus.1796016639.txt.gz · Last modified: 2026/11/30 08:30 by val