count({__name__=~".+"}) query shows only 9 but prometheus_tsdb_head_series shows 837 count, any idea why is that difference? are both queries not similar?
here is the scrape config:
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'prometheus-1'
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs:
- targets: ['localhost:9090']
labels:
env: local
metric_relabel_configs:
- source_labels: [__name__]
regex: (prometheus_tsdb_head_series)
action: keep
- job_name: 'node_exporter-1'
static_configs:
- targets: ['localhost:9100']
labels:
env: local
metric_relabel_configs:
- source_labels: [__name__]
regex: (?i)(metric1|metric2|metric3)
action: keep