Alerts are duplicated because of the monitor external label
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Prometheus2 charm |
New
|
Medium
|
Unassigned |
Bug Description
* A few references on the issue:
* https:/
* https:/
* The issue is that the prometheus.yml file is jinja2 templated in a weird way [0].
The "monitor" label is based on the service name, which means that we cannot really aggregate this without the admin indicating what he wants to do with this label.
Plus there is the question of the other external labels that can be set in extra.
I don't see right away a good option to "fix" this. This software is just too complex to be smarter than "put the raw configuration in a juju config" path IMHO.
The external label are usually used to avoid duplicates when a storage aggregate the metrics from several datacenters.
I don't see the value of having an automatic external label that is set automatically based on the name of the service.
I would suggest the following solution:
* remove the "monitor" external label and let the juju config item external-labels be defined only by the `external-labels` config
* add another alert-relabel-
[0]: https:/
description: | updated |
description: | updated |
description: | updated |
Changed in charm-prometheus2: | |
importance: | Undecided → Medium |
Why remove the "monitor" label ? When you have multiple apps deployed, I think it's useful to have it.
I feel like just allowing the user, via a juju config option, to configure alert relabeling would be enough here ?