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:
- job_name: 'instant'
metrics_path: /instantmetrics
scrape_interval: 2s
static_configs:
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