-
Notifications
You must be signed in to change notification settings - Fork 1
Filtering Metrics
ilan-anodot edited this page Jun 4, 2020
·
3 revisions
Without applying a filtering configuration, all metrics will be sent to the Anodot platform:
global:
scrape_interval: 60s
remote_write:
- url: "http://anodot-prometheus-remote-write:1234/receive"
To reduce the number of metrics, write_relabel_configs, should be applied.
The following configuration, will send to Anodot only those metrics with the {job="envoy-stats"}
label:
global:
scrape_interval: 60s
remote_write:
- url: "http://anodot-prometheus-remote-write:1234/receive"
write_relabel_configs:
- source_labels: [ job ]
regex: 'envoy-stats'
action: keep
The following configuration, will send to Anodot only those metrics with the name container_tasks_state
or container_memory_failures_total
:
global:
scrape_interval: 60s
remote_write:
- url: "http://anodot-prometheus-remote-write:1234/receive"
write_relabel_configs:
- source_labels: [__name__]
regex: '(container_tasks_state|container_memory_failures_total)'
action: keep