-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
BugSomething isn't workingSomething isn't workingProviderProviders related issuesProviders related issues
Description
Describe the bug
It appears that the Prometheus provider ignores custom fingerprint fields set in the deduplication rule and generates the fingerprint hash based on the alertname alone.
To Reproduce
Steps to reproduce the behavior:
- Provision or manually add a Prometheus provider. (with pulling enabled)
- Modify default deduplication rule for Prometheus provider to use multiple labels for Fields to use for fingerprint.
- Observe alerts with different values for selected fingerprint labels are still deduplicated based on alert name alone.
Expected behavior
Prometheus provider should generate a unique fingerprint hash based on labels configured in deduplication rule.
Additional context
Provider provision config:
{
"keepPrometheus": {
"type": "prometheus",
"authentication": {
"url": "https://prometheus.dev1.domain.com",
"verify": false
},
"deduplication_rules": {
"prometheus_default_dedupe": {
"description": "This is the default deduplication rule for Prometheus alerts",
"fingerprint_fields": [
"labels.alertname",
"labels.env_dc",
"labels.group"
],
"full_deduplication": false
}
}
}
}Note identical fingerprint hash for alerts with different group labels:
$ echo -n 'NodeLowDiskSpace4Hours' | sha256sum
6211e97de90695be41b49c773306001204872a6ebb36f4aa72a5bbd998ce7ac5 -dosubot
Metadata
Metadata
Assignees
Labels
BugSomething isn't workingSomething isn't workingProviderProviders related issuesProviders related issues