Skip to content

Commit 7026263

Browse files
Merge pull request #281267 from sunasing/sunasing-0718
Add note on relabeling configs
2 parents 736b56e + bf5620f commit 7026263

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ relabelings:
248248
targetLabel: instance
249249
```
250250

251+
> [!NOTE]
252+
> If you have relabeling configs, ensure that the relabeling does not filter out the targets, and the labels configured correctly match the targets.
253+
251254
### Metric Relabelings
252255

253256
Metric relabelings are applied after scraping and before ingestion. Use the `metricRelabelings` section to filter metrics after scraping. The following examples show how to do so.

articles/azure-monitor/containers/prometheus-metrics-troubleshoot.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Replica pod scrapes metrics from `kube-state-metrics`, custom scrape targets in
1616

1717
If you encounter an error while you attempt to enable monitoring for your AKS cluster, please follow the instructions mentioned [here](https://github.com/Azure/prometheus-collector/tree/main/internal/scripts/troubleshoot) to run the troubleshooting script. This script is designed to do a basic diagnosis of for any configuration issues on your cluster and you can ch the generated files while creating a support request for faster resolution for your support case.
1818

19+
## Missing metrics
20+
1921
## Metrics Throttling
2022

2123
In the Azure portal, navigate to your Azure Monitor Workspace. Go to `Metrics` and verify that the metrics `Active Time Series % Utilization` and `Events Per Minute Ingested % Utilization` are below 100%.
@@ -53,6 +55,10 @@ kubectl describe pod <ama-metrics pod name> -n kube-system
5355

5456
If the pods are running as expected, the next place to check is the container logs.
5557

58+
## Check for relabeling configs
59+
60+
If metrics are missing, you can also check if you have relabeling configs. With relabeling configs, ensure that the relabeling does not filter out the targets, and the labels configured correctly match the targets. Refer to [Prometheus relabel config documentation](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config) for more details.
61+
5662
## Container logs
5763
View the container logs with the following command:
5864

@@ -159,7 +165,7 @@ Go to `127.0.0.1:9091/metrics` in a browser to see if the metrics were scraped b
159165
160166
## Metric names, label names & label values
161167
162-
Agent based scraping currently has the limitations in the following table:
168+
Metrics scraping currently has the limitations in the following table:
163169
164170
| Property | Limit |
165171
|:---|:---|
@@ -180,7 +186,7 @@ If you see metrics missed, you can first check if the ingestion limits are being
180186
- Events Per Minute Ingested Limit - The maximum number of events per minute that can be ingested before getting throttled
181187
- Events Per Minute Ingested % Utilization - The percentage of current metric ingestion rate limit being util
182188
183-
To avoid metrics ingestion throttling, you can monitor and set up an alert on the ingestion limits. See [Monitor ingestion limits](../essentials/prometheus-metrics-overview.md#how-can-i-monitor-the-service-limits-and-quota).
189+
To avoid metrics ingestion throttling, you can **monitor and set up an alert on the ingestion limits**. See [Monitor ingestion limits](../essentials/prometheus-metrics-overview.md#how-can-i-monitor-the-service-limits-and-quota).
184190
185191
Refer to [service quotas and limits](../service-limits.md#prometheus-metrics) for default quotas and also to understand what can be increased based on your usage. You can request quota increase for Azure Monitor workspaces using the `Support Request` menu for the Azure Monitor workspace. Ensure you include the ID, internal ID and Location/Region for the Azure Monitor workspace in the support request, which you can find in the `Properties' menu for the Azure Monitor workspace in the Azure portal.
186192

0 commit comments

Comments
 (0)