diff options
Diffstat (limited to 'doc/development/prometheus_metrics.md')
-rw-r--r-- | doc/development/prometheus_metrics.md | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/development/prometheus_metrics.md b/doc/development/prometheus_metrics.md index a6549f72040..2a34851d21c 100644 --- a/doc/development/prometheus_metrics.md +++ b/doc/development/prometheus_metrics.md @@ -56,10 +56,12 @@ This section describes how to add new metrics for self-monitoring ([example](https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/15440)). 1. Select the [type of metric](https://gitlab.com/gitlab-org/prometheus-client-mmap#metrics): - - `Gitlab::Metrics.counter` - - `Gitlab::Metrics.gauge` - - `Gitlab::Metrics.histogram` - - `Gitlab::Metrics.summary` + + - `Gitlab::Metrics.counter` + - `Gitlab::Metrics.gauge` + - `Gitlab::Metrics.histogram` + - `Gitlab::Metrics.summary` + 1. Select the appropriate name for your metric. Refer to the guidelines for [Prometheus metric names](https://prometheus.io/docs/practices/naming/#metric-names). 1. Update the list of [GitLab Prometheus metrics](../administration/monitoring/prometheus/gitlab_metrics.md). |