From 1ca7341848e8ab4e32ebf65193507cc4aaa3e9c9 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Fri, 31 May 2024 00:52:14 -0400 Subject: [PATCH] docs: add mysqld onboarding snippet --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 00dee95..0b08050 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,27 @@ # Panopticon +> 👁️‍🗨️ It sees all. + +Monitoring and observability stack. + ## Onboarding databases -Add the following to the pod in which the database runs. Port 9187 is exposed by default by the exporter and should be mapped. +Add the following to the pod in which the database runs. The port and exporter address should be included in `prometheus.yml`. +### MySQL/MariaDB + +``` +podman run -d \ + --pod \ + --replace \ + prom/mysqld-exporter \ + --config.my-cnf= +``` + +### Postgresql + ``` podman run -d \ -e DATA_SOURCE_NAME="postgresql://:@:/postgres?sslmode=disable" \