Skip to content

Commit bf683da

Browse files
Merge pull request #281040 from rashmichandrashekar/rashmi-ext-labels
Adding external label doc update
2 parents 72a79e2 + c960ac8 commit bf683da

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

articles/azure-monitor/containers/prometheus-metrics-scrape-configuration.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,17 @@ metric_relabel_configs:
457457
regex: '.+'
458458
```
459459
460+
> [!NOTE]
461+
>
462+
> If you wish to add labels to all the jobs in your custom configuration, explicitly add labels using metrics_relabel_configs for each job. Global external labels are not supported via configmap based prometheus configuration.
463+
> ```yaml
464+
> relabel_configs:
465+
> - source_labels: [__address__]
466+
> target_label: example_label
467+
> replacement: 'example_value'
468+
> ```
469+
>
470+
460471
---
461472

462473

0 commit comments

Comments
 (0)