Hey guys,

Trying to drop all metrics except a select few at time of writing to remote 
storage, the config I'm using to do so is the below:

      remoteWrite:
>
>         - url: 
>> 'http://prometheus-adapter.monitoring.svc.cluster.local:9201/write'
>
>           write_relabel_configs:
>
>             - source_labels: [__name__]
>
>               regex: 'ceph.*'
>
>               action: keep
>
>             - source_labels: [__name__]
>
>               regex: 'pg_.*'
>
>               action: keep
>
>             - source_labels: [__name__]
>
>               regex: 'node.*'
>
>               action: keep
>
>             - source_labels: [__name__]
>
>               regex: '.*'
>
>               action: drop
>
>
As you can see from the above I'd like to keep all metrics matching 
'ceph.*', 'pg_.*' & 'node.*' and drop everything else; except this doesn't 
seem to be working as it's dropping all metrics
 

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/827f3366-b244-4121-9f1c-4feb25c1ac1ao%40googlegroups.com.

Reply via email to