Skip to content

Commit

Permalink
Provide docs for upcoming default metric labels (#950)
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>
  • Loading branch information
tomkerkhove authored Apr 7, 2020
1 parent d542aca commit 48b7571
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions changelog/content/experimental/unreleased.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: "(2018-09-15)"
date: 2018-09-02T20:46:47+02:00
weight: 1
version: v1.6.0
---

- {{% tag added %}} Support for defining default metric labels ([docs](https://promitor.io/configuration/v1.x/metrics/) | [#933](https://github.com/tomkerkhove/promitor/issues/933))
5 changes: 5 additions & 0 deletions docs/configuration/v1.x/metrics/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ values are `v1`.
a cron that fits your needs.
- `metricDefaults.aggregation.interval` - The default interval which defines over
what period measurements of a metric should be aggregated.
a cron that fits your needs.
- `metricDefaults.labels` - The default lebals that will be applied to all metrics. _(starting as of v1.6)_

### Metrics

Expand Down Expand Up @@ -83,6 +85,9 @@ metricDefaults:
scraping:
# Every minute
schedule: "0 * * ? * *"
labels:
geo: china
environment: dev
metrics:
- name: azure_service_bus_active_messages
description: "The number of active messages on a service bus queue."
Expand Down

0 comments on commit 48b7571

Please sign in to comment.