This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
сервис_grafana [2026/05/21 18:57] val [Kubernetes] |
сервис_grafana [2026/08/21 14:31] (current) val |
||
|---|---|---|---|
| Line 49: | Line 49: | ||
| </code><code> | </code><code> | ||
| #env: | #env: | ||
| - | # HTTP_PROXY: "http://openproxy2.bmstu.ru:3128" | + | # HTTP_PROXY: "http://gate.isp.un:3128" |
| - | # HTTPS_PROXY: "http://openproxy2.bmstu.ru:3128" | + | # HTTPS_PROXY: "http://gate.isp.un:3128" |
| - | # NO_PROXY: "vmsingle-victoria-metrics-single-server,vls-victoria-logs-single-server" | + | # NO_PROXY: "localhost,127.0.0.1,.svc,.cluster.local,vmsingle-victoria-metrics-single-server,vls-victoria-logs-single-server" |
| - | #persistence: | + | persistence: |
| - | # enabled: true | + | enabled: true |
| - | # storageClassName: "longhorn" | + | storageClassName: "longhorn" |
| - | # accessModes: | + | accessModes: |
| - | # - ReadWriteOnce | + | - ReadWriteOnce |
| - | # size: 5Gi | + | size: 2Gi |
| + | |||
| + | #downloadDashboards: | ||
| + | # env: | ||
| + | # HTTP_PROXY: "http://gate.isp.un:3128" | ||
| + | # HTTPS_PROXY: "http://gate.isp.un:3128" | ||
| + | # NO_PROXY: "localhost,127.0.0.1,.svc,.cluster.local,vmsingle-victoria-metrics-single-server,vls-victoria-logs-single-server" | ||
| datasources: | datasources: | ||
| Line 84: | Line 90: | ||
| editable: true | editable: true | ||
| options: | options: | ||
| - | path: /var/lib/grafana/dashboards/default | + | path: /var/lib/grafana/dashboards |
| dashboards: | dashboards: | ||
| Line 108: | Line 114: | ||
| </code> | </code> | ||
| + | * Может понадобится удалить метки: systemd_service_name!="", name=~"^k8s_.*", | ||
| ===== Подключение Prometheus ===== | ===== Подключение Prometheus ===== | ||
| Line 129: | Line 136: | ||
| prometheus-apache-exporter: 17898 | prometheus-apache-exporter: 17898 | ||
| Data Source: Prometheus | Data Source: Prometheus | ||
| + | </code> | ||
| + | |||
| + | ==== prometheus-blackbox-exporter: 7587 ==== | ||
| + | <code> | ||
| + | Edit->Dasboard options->Variables->target | ||
| + | Open variable editor | ||
| + | Target data source: prometheus | ||
| + | Query type: Label values | ||
| + | Label: instance | ||
| + | Metric: probe_success | ||
| + | Preview | ||
| </code> | </code> | ||