sql_exporter icon indicating copy to clipboard operation
sql_exporter copied to clipboard

exporter has a lot of default metrics

Open weiya1990 opened this issue 3 years ago • 1 comments

for example:go_gc_pauses_seconds_total_bucket go_sched_latencies_seconds_bucket image image

weiya1990 avatar Jul 25 '22 02:07 weiya1990

Those are default Go metrics I believe. If there are any time series you don't want to ingest/scrape, use a metric relabel with drop action. Check here: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config

Or a specific example. The metric name is regex so you can also fuzzy match them.

scrape_configs:
 - job_name: 'my_job'
   static_configs:
     - targets:
       - my_target:1234
   metric_relabel_configs:
   - source_labels: [ __name__ ]
     regex: 'my_too_large_metric'
     action: drop

marevers avatar Jul 29 '22 09:07 marevers