In my case
Prometheus scrape every one minute normal, and exporter collect one minute 
also.
While someone open dashboard,
the exporter collect rapidly,prometheus scrape in high frequency

the exporter has one http serer, and two urls, /metrics  and 
/instantmetrics, 
prometheus has two job to scrape
after dashboard has been closed ,the url /instantmetrics is empty

so, I will merge the two job
the prometheus.yml is:

global:
  scrape_interval: 60s

scrape_configs:
  - job_name: 'anp'
    static_configs:
    - targets: ['127.0.0.1:35003']

  - job_name: 'instant'
    metrics_path: /instantmetrics
    scrape_interval: 2s
    static_configs:
    - targets: ['127.0.0.1:35003']
    metric_relabel_configs:
    - source_labels: [job]
      regex: 'instant'
      replacement: 'anp'
      target_label: 'job'

the relabel is effective,but
from prometheus graph, some data lost
please view attachments

the "LOST" happen after closing dashboard

-- 
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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/3fcbe296-4a66-4595-9a11-707146f05d37%40googlegroups.com.

Reply via email to