30 lines
587 B
Markdown
30 lines
587 B
Markdown
# Panopticon
|
|
|
|
> 👁️🗨️ It sees all.
|
|
|
|
Monitoring and observability stack.
|
|
|
|
## Onboarding databases
|
|
|
|
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 <pod-name> \
|
|
--replace \
|
|
prom/mysqld-exporter \
|
|
--config.my-cnf=<configuration-file-path>
|
|
```
|
|
|
|
### Postgresql
|
|
|
|
```
|
|
podman run -d \
|
|
-e DATA_SOURCE_NAME="postgresql://<user>:<pwd>@<host>:<port>/postgres?sslmode=disable" \
|
|
--pod <pod-name> \
|
|
quay.io/prometheuscommunity/postgres-exporter
|
|
```
|