-
Notifications
You must be signed in to change notification settings - Fork 0
Monitoring
LaimeJesus edited this page Jun 10, 2019
·
1 revision
This guide shows how to install Prometheus and Grafana in your local environment without using docker-compose
vim Dockerfile
FROM prom/prometheus
ADD prometheus.yml /etc/prometheus/
vim prometheus.yml
global:
scrape_interval: 15s
scrape_configs:
- job_name: 'factory'
scrape_interval: 10s
static_configs:
- targets: ['localhost:8080']
-
docker build -t prometheus:factory .
-
docker run --network=host -p 9090:9090 prometheus:factory --name prom-factory
docker run -d --network=host -p 3005:3000 grafana/grafana