panopticon/README.md

35 lines
695 B
Markdown
Raw Permalink 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-06-03 04:01:20 +00:00
## Maintaining
Using [spud](https://forge.karnov.club/spadinastan/spud), just `spud start ./service.yml`!
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
```