Skip to content

Commit 7b8b5cc

Browse files
adding external label doc
1 parent 6eb2a02 commit 7b8b5cc

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,17 @@ metric_relabel_configs:
459459
460460
---
461461
462-
462+
### Note
463+
> [!NOTE]
464+
>
465+
> If you wish to add labels to all the jobs in your custom configuration, explicitly add labels using metrics_relabel_config for each job. Global external labels are not supported via configmap based prometheus configuration.
466+
> ```yaml
467+
> relabel_configs:
468+
> - source_labels: [__address__]
469+
> target_label: example_label
470+
> replacement: 'example_value'
471+
> ```
472+
>
463473

464474
### Basic Authentication
465475
### [Scrape Configs using Config file](#tab/ConfigFileScrapeConfigBasicAuth)

0 commit comments

Comments
 (0)