This mysteriously fixes the data source test "not found" error.
--- /dev/null
+apiVersion: 1
+datasources:
+- name: Prometheus
+ type: prometheus
+ url: http://localhost:9090
+ isDefault: true
+ access: proxy
+ editable: true
#!/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 new:learn-metrics --name metrics-grafana \
+ -p 3000:3000 -p 3001:9090 \
+ -e GF_SECURITY_ADMIN_PASSWORD=foobar \
+ -v ./conf-grafana/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml:ro \
+ quay.io/bitnami/grafana
+
podman run -d --pod learn-metrics --name metrics-prometheus docker.io/prom/prometheus