From 365e49f581459864b766b7fb6791a6ba081ac175 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 21 May 2021 08:08:03 +0200 Subject: [PATCH] Run unconfigured grafana and prometheus containers Start with `./launch.sh`, tear down with `podman pod rm -f learn-metrics`. Prometheus explorer at http://localhost:3001 (to avoid port conflict with Cockpit). It can list or graph simple queries like `go_memstats_heap_objects` or `go_memstats_heap_objects[5min]`. Metrics source at (in grafana container). Grafana UI at , log in as admin:foobar. Manually add Prometheus data source at . This fails with "HTTP Error Not Found" with "Server" access (which is usually what you want -- "Browser" access fails on CORS). --- launch.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 launch.sh diff --git a/launch.sh b/launch.sh new file mode 100755 index 0000000..8f0dc79 --- /dev/null +++ b/launch.sh @@ -0,0 +1,4 @@ +#!/bin/sh +set -eux +podman run -d --pod new:learn-metrics --name metrics-grafana -p 3000:3000 -p 3001:9090 -e GF_SECURITY_ADMIN_PASSWORD=foobar quay.io/bitnami/grafana +podman run -d --pod learn-metrics --name metrics-prometheus docker.io/prom/prometheus -- 2.39.2