-
Notifications
You must be signed in to change notification settings - Fork 15
Grafana installation
smilebasti edited this page Jun 7, 2023
·
10 revisions
Grafana is not required but it displays the data that got gathered and stored in InfluxDB.
A complete installation example is available with the docker-compose.yml file.
version: '3.8'
services:
grafana:
image: grafana/grafana-oss
restart: unless-stopped
ports:
- '3000:3000'
volumes:
- ./grafana-storage:/var/lib/grafana # after start: sudo chown 472:472 grafana-storage
- In settings create a new data source to connect to the InfluxDB bucket npmgrafstats. Select InfluxDB/flux. You need a read API token in InfluxDB to use it.
- Import or upload a Dashboard. You can from Grafana using the ID
18826. You can also upload it manually using theNPM Map Dashboard.jsonfile. Select the beforehand created data source to be used.