Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 1.25 KB

monitoring-alerting.md

File metadata and controls

41 lines (24 loc) · 1.25 KB

Monitoring and Alerting

This document only covers the VictoriaMetrics Operator. It is designed to be compatible with PrometheusOperator, including with the PrometheusOperator CRDs

Metrics

  • instrument your app and expose a metrics endpoint (docs)

  • define metric endpoints as ServiceMonitor objects

  • VictoriaMetrics will add all ServiceMonitors in cluster

Grafana Dashboards

  • add a ConfigMap containing the dashboard’s json

  • add the grafana_dashboard: "1 label

  • see system/monitoring/dashboards/grafana-dashboard-nginx-main.yaml for an example

  • in the future maybe switch to something like grafana-operator

Alertmanager

  • add a PrometheusRule object

  • give it an app label and add this to the prometheusSpec.ruleSelector.matchExpression

  • operator docs on alerting

  • alerts are sent to the #cluster-alerts channel in elifesciences slack