Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No metric "prometheus_local_storage_ingested_samples_total" for other Jobs exept Promeheus itself #2442

Closed
olisolis opened this Issue Feb 22, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@olisolis
Copy link

olisolis commented Feb 22, 2017

What did you do?
Configured Prometheus, that takes the metrics from itself (localhost) and cadvisor.

What did you expect to see?
Metric "prometheus_local_storage_ingested_samples_total" for all job, hier for job "docker-hosts"
"prometheus_target_interval_length_seconds_count" --> same

What did you see instead? Under which circumstances?
Metric "prometheus_local_storage_ingested_samples_total" exists only for job "prometheus"
"prometheus_target_interval_length_seconds_count" --> same

Execute of Prometheus query:
prometheus_target_interval_length_seconds_count{instance="localhost:9090",interval="15s",job="prometheus"} --> metric only for instance="localhost:9090" (no such metric for target in "docker-hosts")

prometheus_local_storage_ingested_samples_total{instance="localhost:9090",job="prometheus"} --> metric olny for instance="localhost:9090" (no such metric for target in "docker-hosts")

Environment
Linux 4.1.12-61.1.18.el7uek.x86_64 x86_64
Prometheus Version: 1.5.2
Docker Version: 1.13.1, Cadvisor Version: 0.24.1-ae6934c

  • System information:

Linux 4.1.12-61.1.18.el7uek.x86_64 x86_64

  • Prometheus version:

1.5.2

  • Prometheus configuration file:
# my global config
global:
  scrape_interval:     15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
  evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
  
  external_labels:
    monitor: 'codelab-monitor'

scrape_configs:
  - job_name: 'prometheus'

    static_configs:
      - targets: ['localhost:9090']

  - job_name: 'docker-hosts'

    static_configs:
      - targets: ['dockerhosts:9090']
        labels:
          group: 'dockers'
# 
# TARGETS FOR BOTH JOBS UP
#
@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Feb 22, 2017

You're looking for scrape_samples_scraped.

Docker hosts aren't Prometheus, and thus don't have Prometheus' metrics.

@olisolis

This comment has been minimized.

Copy link
Author

olisolis commented Feb 22, 2017

@brian-brazil thank you very much, my mistake.

@olisolis olisolis closed this Feb 22, 2017

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.