In Prometheus UI within the dropdown that says 'insert metric at cursor' it 
shows the previous scraped metrics as well. How to remove those? I would 
like it to show only the metrics which i am keeping through 
'metric-relabel-config'. 

On Friday, February 28, 2020 at 2:14:50 PM UTC+5:30, Ankita Khot wrote:
>
>  - job_name: 'abc'
>     metrics_path: /prometheus
>     scheme: https
>     static_configs:
>     - targets: ['test_vm']
>     tls_config:
>      insecure_skip_verify: true
>     metric_relabel_configs:
>      - source_labels: [__name__]
>        regex:         "jvm_memory_used_bytes"
>        action:        keep
>
>
> I am trying to keep only "jvm_memory_used_bytes" metric using 
> metric_relabel_configs but on the dashboard I am able to see all the 
> metrics. I also changed 'action' to 'drop' but "jvm_memory_used_bytes" is 
> not getting dropped.
>
> Is the above configuration correct ? Is there a way to filter the metrics 
> at the source, so that while using the curl command for metric endpoint we 
> will be able to see only the required 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/3891e883-c692-4baf-8d71-6eb32e1c1481%40googlegroups.com.

Reply via email to