From ccaf3589044cf2f93f6ba2c1316f2868940cebb2 Mon Sep 17 00:00:00 2001 From: mdivecky Date: Tue, 10 Dec 2024 13:07:23 +0100 Subject: [PATCH] Add some info to readme --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f8785f..e090586 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,22 @@ Simple Prometheus setup for monitoring websites, with blackbox-exporter and Grafana. -Testing data source for target discovery is located in branch `pages` and is served on `https://mdivecky.nolog.page/mon-test/targets.json` \ No newline at end of file +Testing data source for target discovery is located in branch `pages` and is served on `https://mdivecky.nolog.page/mon-test/targets.json` + + +# Setup + +```bash +mkdir -p ./data/prometheus +mkdir -p ./data/grafana +chown -R 1000:1000 ./data/* +# Or switch to docker volumes for prometheus and Grafana, if you don't want to deal with permissions + +docker compose up -d + +# -> Goto http://localhost:3000 +# Login to Grafana with admin:admin +# Add Prometheus datasource, with URL "http://prometheus:9090" +# Import or create some dashboards +# Profit $$$ +``` \ No newline at end of file