-
What Grafana version and what operating system are you using?
I’m using Grafana Cloud and Installed agent on AWS EC2 Instance Ubuntu 20.04.4 LTS server -
What are you trying to achieve?
This is first time I’m using Grafana cloud, my intention is just to try out and see how well it works. -
How are you trying to achieve it?
I created a new account and got Pro subscription for now. I followed the NGINX & Linux Node agent installation tutorial.
Test Integration is working fine. -
What happened?
I’m not getting proper metrics in the NGINX dashboard, also some of the Linux Node dashboards panel not working also some of them are giving wrong readings.
Nginx:
Dashboard 1:
Dashboard 2:
-
What did you expect to happen?
I expect the metrics to come properly. -
Can you copy/paste the configuration(s) that you are having problems with?
ubuntu@ip-172-31-13-173:~$ sudo cat /etc/grafana-agent.yaml
integrations:
node_exporter:
enabled: true
relabel_configs:
- replacement: hostname
target_label: instance
prometheus_remote_write:
- basic_auth:
password: eyJrIjoiZDUwODQwODkzOTAyOGM3NTM5Y2YxNDhkNjE0YTIwNDUxMzFiOGQ4YSIsIm4iOiJzdGFjay00MDk3ODMtZWFzeXN0YXJ0LXByb20tcHVibGlzaGVyIiwiaWQiOjY4NzM2MH0=
username: 520302
url: https://prometheus-prod-10-prod-us-central-0.grafana.net/api/prom/push
logs:
configs:
- clients:
- basic_auth:
password: eyJrIjoiZDUwODQwODkzOTAyOGM3NTM5Y2YxNDhkNjE0YTIwNDUxMzFiOGQ4YSIsIm4iOiJzdGFjay00MDk3ODMtZWFzeXN0YXJ0LXByb20tcHVibGlzaGVyIiwiaWQiOjY4NzM2MH0=
username: 259121
url: https://logs-prod3.grafana.net/loki/api/v1/push
name: integrations
positions:
filename: /tmp/positions.yaml
scrape_configs:
- job_name: integrations/nginx
static_configs:
- labels:
__path__: <path to json nginx access log>
host: <http_hostname>
targets:
- localhost
- job_name: integrations/node_exporter_journal_scrape
journal:
labels:
instance: hostname
job: integrations/node_exporter
max_age: 24h
relabel_configs:
- source_labels:
- __journal__systemd_unit
target_label: unit
- source_labels:
- __journal__boot_id
target_label: boot_id
- source_labels:
- __journal__transport
target_label: transport
- source_labels:
- __journal_priority_keyword
target_label: level
target_config:
sync_period: 10s
metrics:
configs:
- name: integrations
remote_write:
- basic_auth:
password: eyJrIjoiZDUwODQwODkzOTAyOGM3NTM5Y2YxNDhkNjE0YTIwNDUxMzFiOGQ4YSIsIm4iOiJzdGFjay00MDk3ODMtZWFzeXN0YXJ0LXByb20tcHVibGlzaGVyIiwiaWQiOjY4NzM2MH0=
username: 520302
url: https://prometheus-prod-10-prod-us-central-0.grafana.net/api/prom/push
global:
scrape_interval: 60s
wal_directory: /tmp/grafana-agent-wal
ubuntu@ip-172-31-13-173:~$
-
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
No, No errors so far. -
Did you follow any online instructions? If so, what is the URL?
No.