![]() ![]() It will retrieve the data from Node exporter, store it and pass it onto our Grafana Cloud instance. ![]() Prometheus is a time-series database similar to InfluxDB.Node exporter, which as the name suggests will be responsible for exporting hardware and OS metrics exposed by our Linux host.The above Docker Compose contains just 2 containers: prometheus/data:/prometheus command : - ' -config.file=/etc/prometheus/prometheus.yml' - ' =/prometheus' - ' =/etc/prometheus/console_libraries' - ' =/etc/prometheus/consoles' - ' -web.enable-lifecycle' expose : - 9090 networks : - monitoring networks : monitoring : driver : bridge prometheus/prometheus.yml:/etc/prometheus/prometheus.yml. Version : " 3.8" services : node-exporter : image : prom/node-exporter:latest container_name : node-exporter restart : unless-stopped volumes : - /proc:/host/proc:ro - /sys:/host/sys:ro - /:/rootfs:ro command : - ' -path.procfs=/host/proc' - ' -path.rootfs=/rootfs' - ' -path.sysfs=/host/sys' - ' -points-exclude=^/(sys|proc|dev|host|etc)($$|/)' expose : - 9100 networks : - monitoring prometheus : image : prom/prometheus:latest user : root container_name : prometheus restart : unless-stopped volumes :. Now copy the snippet and the bottom, replacing your API key in the process: Give your API key a meaningful name and make sure to assign the MetricsPublisher role: ![]() Scroll down to the Password / API Key section to generate your API key. This will show you the details for your Prometheus instance: Once you’ve successfully signed up, log in to the Grafana Cloud Portal and click the Details button on the Prometheus card.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |