docs: add mysqld onboarding snippet

This commit is contained in:
Marc 2024-05-31 00:52:14 -04:00
parent 5f90da4552
commit 1ca7341848
Signed by: marc
GPG key ID: 048E042F22B5DC79

View file

@ -1,11 +1,27 @@
# Panopticon # Panopticon
> 👁️‍🗨️ It sees all.
Monitoring and observability stack.
## Onboarding databases ## 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`. The port and exporter address should be included in `prometheus.yml`.
### MySQL/MariaDB
```
podman run -d \
--pod <pod-name> \
--replace \
prom/mysqld-exporter \
--config.my-cnf=<configuration-file-path>
```
### Postgresql
``` ```
podman run -d \ podman run -d \
-e DATA_SOURCE_NAME="postgresql://<user>:<pwd>@<host>:<port>/postgres?sslmode=disable" \ -e DATA_SOURCE_NAME="postgresql://<user>:<pwd>@<host>:<port>/postgres?sslmode=disable" \