Querying Prometheus form Grafana dashboard.

334 views
Skip to first unread message

zo...@dojesta.com

unread,
Jul 1, 2017, 1:26:23 AM7/1/17
to Prometheus Users
Hi All,


I have just installed Prometheus info below and Grafana on the same host.
I have configured 2 targets  one is Docker using cAdvisor the second is the local host.
Grafana was installed and configured and managing collecting data from other sources and i have imported several dashboard to present the Prometheus info.
However I am missing something and I will appreciate any help.
The Grafana dashboard is still empty showing "no data point" for example in one of the dashboard.
For example in a graph for metric lookup for " container_cpu_user_seconds_total" i can get the info from the Prometheus console.
But the dashboard graph for the query sort_desc(sum(rate(container_cpu_user_seconds_total{image!=""}[1m])) by (name)) return no data also from the Prometheus console.
What am I am missing in the configuration or did I missed something in the installation.

Any information suggestion will be highly appreciated.

Thanks,
Zohar.



Version: 1.7.1
GoVersion: go1.8.3
Revision: 3afb3fffa3a29c3de865e1172fb740442e9d0133

Config file:
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.
# scrape_timeout is set to the global default (10s).

# Attach these labels to any time series or alerts when communicating with
# external systems (federation, remote storage, Alertmanager).
external_labels:
monitor: 'prod-monitor'

scrape_configs:
- job_name: 'node'
ec2_sd_configs:
- region: '-SSS-1b'
access_key: XXXXXXX
secret_key: XXXXXXX
port: 9100
- job_name: 'cAdvisor'
static_configs:
- targets: ['10.0.4.70:8080']

scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
- job_name: 'node-exporter'
static_configs:
- targets: ['10.0.4.70:8080']

Message has been deleted
Message has been deleted

zo...@dojesta.com

unread,
Jul 2, 2017, 7:04:08 AM7/2/17
to Prometheus Users
Hi,

The issue is still open.
Anyone? I will greatly appreciate any help.

Best,
Zohar.

sig...@gmail.com

unread,
Jul 3, 2017, 1:22:41 AM7/3/17
to Prometheus Users
Hi mate,

Check if you have added the data source in grafana.

Regards,
SD

zo...@dojesta.com

unread,
Jul 3, 2017, 4:41:49 AM7/3/17
to Prometheus Users
Thanks,

Thanks that issue is not with Grafana since I can't get the information from the Prometheus graph console itself.
For example I am collecting data from a docker host using cAdvisor and I can see from the Prometheus graph console that:
container_cpu_user_seconds_total is been collected.
But when I am executing more complex query like sort_desc(sum(rate(container_cpu_user_seconds_total{image!=""}[1m])) by (name)) from the Prometheus console I get "no data" in response.
What am I missing here?

I will appreciate any help.

Best,
Zohar.

zo...@dojesta.com

unread,
Jul 5, 2017, 4:18:42 AM7/5/17
to Prometheus Users
The open question remain why "container_cpu_user_seconds_total" is available on the Prometheus console but the query sort_desc(sum(rate(container_cpu_user_seconds_total{image!=""}[1m])) by (name)) returns w/out data.
Any idea?

Will appreciate any help.

Zohar.
Reply all
Reply to author
Forward
0 new messages