panopticon/README.md

31 lines
587 B
Markdown
Raw Normal View History

2024-05-31 03:53:46 +00:00
# Panopticon
2024-05-31 04:52:14 +00:00
> 👁️‍🗨️ It sees all.
Monitoring and observability stack.
2024-05-31 03:53:46 +00:00
## Onboarding databases
2024-05-31 04:52:14 +00:00
Add the following to the pod in which the database runs.
2024-05-31 03:53:46 +00:00
The port and exporter address should be included in `prometheus.yml`.
2024-05-31 04:52:14 +00:00
### MySQL/MariaDB
```
podman run -d \
--pod <pod-name> \
--replace \
prom/mysqld-exporter \
--config.my-cnf=<configuration-file-path>
```
### Postgresql
2024-05-31 03:53:46 +00:00
```
podman run -d \
-e DATA_SOURCE_NAME="postgresql://<user>:<pwd>@<host>:<port>/postgres?sslmode=disable" \
--pod <pod-name> \
quay.io/prometheuscommunity/postgres-exporter
```