Telefonica / prometheus-kafka-adapter

Use Kafka as a remote storage database for Prometheus (remote write only)
Apache License 2.0
364 stars 135 forks source link

remote_write filter #105

Closed garg-kapil closed 1 year ago

garg-kapil commented 1 year ago

Hi,

I want to apply filter on remote write like this


- url: "http://172.17.10.183:8080/receive"
   writeRelabelConfigs:
  - sourceLabels: [__name__]
    regex: node_cpu_hourly_cost
    action: keep
  - sourceLabels: [__name__]
    regex: node_gpu_hourly_cost
    action: keep
  - sourceLabels: [__name__]
    regex: node_ram_hourly_cost
    action: keep  

but it is not working I am using promethus deployed using prometheus operator neither i can see any logs etc on promethus or in prometheus-kafka-adapter pods logs Can anyone help..??

palmerabollo commented 1 year ago

Hi. That looks like an issue in your prometheus config. I'm closing it since it is not a prometheus-kafka-adapter issue, but please review your config. I'm not a prometheus expert but, according to https://prometheus.io/docs/prometheus/latest/configuration/configuration/#remote_write, write_relabel_configs should use snake_case ??