ishanaudichya / prometheus-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

prometheus-demo

1. Prometheus Server

  • 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

2. Setup Grafana

docker run -d -p 3000:3000 --name=grafana grafana/grafana-oss

grafana

3. Setup Loki Server

docker run -d --name=loki -port 3100:3100 grafana/loki

About


Languages

Language:JavaScript 100.0%