Skip to content

How do you configure $job and $host for this dashboard? #183

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

Open
bknowles opened this issue Feb 19, 2025 · 0 comments
Open

How do you configure $job and $host for this dashboard? #183

bknowles opened this issue Feb 19, 2025 · 0 comments

Comments

@bknowles
Copy link

I've got the Prometheus node_exporter installed and configured via docker-compose.yml, and it appears to be up and running normally:

# docker logs node_exporter
time=2025-02-18T23:49:07.819Z level=INFO source=node_exporter.go:216 msg="Starting node_exporter" version="(version=1.9.0, branch=HEAD, revision=02afa5c53c36123611533f2defea6ccd4546a9bb)"
time=2025-02-18T23:49:07.819Z level=INFO source=node_exporter.go:217 msg="Build context" build_context="(go=go1.23.6, platform=linux/amd64, user=root@745e986f4d3a, date=20250217-07:22:48, tags=unknown)"
time=2025-02-18T23:49:07.825Z level=INFO source=filesystem_common.go:266 msg="Parsed flag --collector.filesystem.mount-points-exclude" collector=filesystem flag=^/(dev|proc|run/credentials/.+|sys|var/lib/docker/.+|var/lib/containers/storage/.+)($|/)
time=2025-02-18T23:49:07.825Z level=INFO source=filesystem_common.go:295 msg="Parsed flag --collector.filesystem.fs-types-exclude" collector=filesystem flag=^(autofs|binfmt_misc|bpf|cgroup2?|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|iso9660|mqueue|nsfs|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|selinuxfs|squashfs|sysfs|tracefs)$
time=2025-02-18T23:49:07.825Z level=INFO source=systemd_linux.go:152 msg="Parsed flag --collector.systemd.unit-include" collector=systemd flag=.+
time=2025-02-18T23:49:07.825Z level=INFO source=systemd_linux.go:154 msg="Parsed flag --collector.systemd.unit-exclude" collector=systemd flag=.+\.(automount|device|mount|scope|slice)
time=2025-02-18T23:49:07.825Z level=INFO source=diskstats_common.go:110 msg="Parsed flag --collector.diskstats.device-exclude" collector=diskstats flag=^(z?ram|loop|fd|(h|s|v|xv)d[a-z]|nvme\d+n\d+p)\d+$
time=2025-02-18T23:49:07.825Z level=ERROR source=diskstats_linux.go:264 msg="Failed to open directory, disabling udev device properties" collector=diskstats path=/run/udev/data
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:135 msg="Enabled collectors"
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=arp
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=bcache
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=bonding
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=btrfs
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=conntrack
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=cpu
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=cpufreq
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=diskstats
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=dmi
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=edac
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=entropy
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=fibrechannel
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=filefd
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=filesystem
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=hwmon
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=infiniband
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=ipvs
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=loadavg
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=mdadm
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=meminfo
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=netclass
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=netdev
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=netstat
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=nfs
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=nfsd
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=nvme
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=os
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=powersupplyclass
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=pressure
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=processes
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=rapl
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=schedstat
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=selinux
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=sockstat
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=softnet
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=stat
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=systemd
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=tapestats
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=textfile
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=thermal_zone
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=time
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=timex
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=udp_queues
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=uname
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=vmstat
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=watchdog
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=xfs
time=2025-02-18T23:49:07.826Z level=INFO source=node_exporter.go:141 msg=zfs
time=2025-02-18T23:49:07.826Z level=INFO source=tls_config.go:347 msg="Listening on" address=[::]:9100
time=2025-02-18T23:49:07.826Z level=INFO source=tls_config.go:350 msg="TLS is disabled." http2=false address=[::]:9100

And I imported the dashboard from https://github.com/rfmoz/grafana-dashboards/blob/master/prometheus/node-exporter-full.json and corrected the Prometheus data source.

But now I get no data in the dashboard, because $job is not defined, and $host is not defined. How do I fix these two?

Is the dashboard not set up to auto-detect what the correct $job and $host values could be?

Do you have any place in the repo where you document what these values should be?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant