- Create a
prometheus-config.yml
file and copy the following configration. Don't forget to replace<NDOEJS_SERVER_ADDRESS>
with actual value.
global:
scrape_interval: 4s
scrape_configs:
- job_name: prometheus
static_configs:
- targets: ["<NDOEJS_SERVER_ADDRESS>"]
- Start the Prometheus Server using docker compose
version: "3"
services:
prom-server:
image: prom/prometheus
ports:
- 9090:9090
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
Great, The prometheus server is now up and running at PORT 9090
docker run -d -p 3000:3000 --name=grafana grafana/grafana-oss
docker run -d --name=loki -port 3100:3100 grafana/loki