From: Martin Pitt Date: Fri, 21 May 2021 06:08:03 +0000 (+0200) Subject: Run unconfigured grafana and prometheus containers X-Git-Url: https://piware.de/gitweb/?p=learn-metrics.git;a=commitdiff_plain;h=365e49f581459864b766b7fb6791a6ba081ac175 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). --- 365e49f581459864b766b7fb6791a6ba081ac175 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