Skip to content

Commit ba2ad71

Browse files
authored
chore: add asyntax hightlighting
1 parent bbd2c53 commit ba2ad71

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/content/docs/infrastructure/prometheus-integrations/install-configure-openmetrics/ignore-or-include-prometheus-metrics.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The [`nri-prometheus-latest.yaml`](https://download.newrelic.com/infrastructure_
4545

4646
To drop all metrics that start with `go_` or `process_`:
4747

48-
```
48+
```yml
4949
transformations:
5050
- description: "General processing rules"
5151
ignore_metrics:
@@ -56,7 +56,7 @@ The [`nri-prometheus-latest.yaml`](https://download.newrelic.com/infrastructure_
5656
5757
Example of raw Prometheus metrics
5858
59-
```
59+
```promql
6060
go_goroutines 13
6161
process_virtual_memory_bytes 2.062336e+07
6262
mysql_global_status_commands_total{command="ha_close"} 0
@@ -69,7 +69,7 @@ The [`nri-prometheus-latest.yaml`](https://download.newrelic.com/infrastructure_
6969

7070
After filtering has been applied, the `go_` and `process_` metrics are dropped and the `mysql_` metrics are shipped to New Relic.
7171

72-
```
72+
```promql
7373
mysql_global_status_commands_total{command="ha_close"} 0
7474
mysql_global_status_commands_total{command="ha_open"} 0
7575
```
@@ -85,7 +85,7 @@ The [`nri-prometheus-latest.yaml`](https://download.newrelic.com/infrastructure_
8585

8686
To drop all metrics except `kube_hpa_`:
8787

88-
```
88+
```yml
8989
transformations:
9090
- description: "General processing rules"
9191
ignore_metrics:
@@ -106,15 +106,15 @@ The [`nri-prometheus-latest.yaml`](https://download.newrelic.com/infrastructure_
106106

107107
To drop all `coredns_` metrics, except for `coredns_dns_request_count_total` and `coredns_dns_responses_total`:
108108

109-
```
109+
```yml
110110
transformations:
111111
- description: "CoreDNS Example Metrics"
112112
ignore_metrics:
113113
- prefixes:
114-
- coredns_
114+
- coredns_
115115
except:
116-
- coredns_dns_request_count_total
117-
- coredns_dns_responses_total
116+
- coredns_dns_request_count_total
117+
- coredns_dns_responses_total
118118
```
119119
</Collapser>
120120
</CollapserGroup>

0 commit comments

Comments
 (0)