You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/containers/prometheus-metrics-multiple-workspaces.md
+1-167Lines changed: 1 addition & 167 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,174 +8,8 @@ ms.reviewer: aul
8
8
9
9
# Send Prometheus metrics to multiple Azure Monitor workspaces
10
10
11
-
Routing metrics to more Azure Monitor workspaces can be done through the creation of additional data collection rules. All metrics can be sent to all workspaces or different metrics can be sent to different workspaces.
11
+
Routing metrics to more Azure Monitor workspaces can be done through the creation of additional data collection rules.
12
12
13
-
## Send same metrics to multiple Azure Monitor workspaces
14
-
15
-
You can create multiple Data Collection Rules that point to the same Data Collection Endpoint for metrics to be sent to additional Azure Monitor workspaces from the same Kubernetes cluster. In case you have a very high volume of metrics, a new Data Collection Endpoint can be created as well. Please refer to the service limits [document](../service-limits.md) regarding ingestion limits. Currently, this is only available through onboarding through Resource Manager templates. You can follow the [regular onboarding process](kubernetes-monitoring-enable.md#enable-prometheus-and-grafana) and then edit the same Resource Manager templates to add additional DCRs and DCEs (if applicable) for your additional Azure Monitor workspaces. You'll need to edit the template to add an additional parameters for every additional Azure Monitor workspace, add another DCR for every additional Azure Monitor workspace, add another DCE (if applicable), add the Monitor Reader Role for the new Azure Monitor workspace and add an additional Azure Monitor workspace integration for Grafana.
16
-
17
-
- Add the following parameters:
18
-
```json
19
-
"parameters": {
20
-
"azureMonitorWorkspaceResourceId2": {
21
-
"type": "string"
22
-
},
23
-
"azureMonitorWorkspaceLocation2": {
24
-
"type": "string",
25
-
"defaultValue": "",
26
-
"allowedValues": [
27
-
"eastus2euap",
28
-
"centraluseuap",
29
-
"centralus",
30
-
"eastus",
31
-
"eastus2",
32
-
"northeurope",
33
-
"southcentralus",
34
-
"southeastasia",
35
-
"uksouth",
36
-
"westeurope",
37
-
"westus",
38
-
"westus2"
39
-
]
40
-
},
41
-
...
42
-
}
43
-
```
44
-
45
-
- For high metric volume, add an additional Data Collection Endpoint. You *must* replace `<dceName>`:
- Add an additional Data Collection Rule Association (DCRA) with the relevant Data Collection Rule (DCR). This associates the DCR with the cluster. You must replace `<dcraName>`:
## Send different metrics to different Azure Monitor workspaces
180
14
181
15
If you want to send some metrics to one Azure Monitor workspace and other metrics to a different one, follow the above steps to add additional DCRs. The value of `microsoft_metrics_include_label` under the `labelIncludeFilter` in the DCR is the identifier for the workspace. To then configure which metrics are routed to which workspace, you can add an extra pre-defined label, `microsoft_metrics_account` to the metrics. The value should be the same as the corresponding `microsoft_metrics_include_label` in the DCR for that workspace. To add the label to the metrics, you can utilize `relabel_configs` in your scrape config. To send all metrics from one job to a certain workspace, add the following relabel config:
0 commit comments