December 2017
Intermediate to advanced
404 pages
9h 28m
English
Before using Prometheus and Grafana in our own application, we will need to set it up first. Luckily, you can find Docker images for both applications on the Docker Hub. Before starting our own Prometheus container, we just need to create a configuration file that we can then inject into the container.
Start by creating a new directory somewhere on your local machine and placing a new prometheus.yml file in it:
global:
scrape_interval: 15s
scrape_configs:
- job_name: prometheus
static_configs:
- targets: ["localhost:9090"]
This configuration defines a global scraping interval of 15 seconds (the default is 1 minute) and already configures the first scraping target, which is Prometheus itself ...
Read now
Unlock full access