76 lines
1.2 KiB
Markdown
76 lines
1.2 KiB
Markdown
# Podman Kube for Logging Stack
|
|
|
|
Podman Kube to setup pods for:
|
|
- Grafana
|
|
- Loki
|
|
- Prometheus
|
|
|
|
**Status**: Currently Proof-of-Concept of my logging stack.
|
|
|
|
---
|
|
|
|
## Use
|
|
|
|
clone this repo
|
|
|
|
`cd podman-grafana-loki`
|
|
|
|
Go into subdirs, remove the `.example` suffix and change accordingly. Makes it easier to work with in this template for now.
|
|
|
|
`podman kube play mnsn-log-stack.yaml`
|
|
|
|
Taking it down
|
|
`podman kube down mnsn-log-stack.yaml`
|
|
|
|
---
|
|
|
|
## Configuration
|
|
|
|
Goals:
|
|
: keeping the endpoints local (127.1)
|
|
: automated setup
|
|
|
|
### Endpoint
|
|
|
|
Grafana
|
|
|
|
`http://127.0.0.1:3000/`
|
|
|
|
Loki
|
|
|
|
`http://127.0.0.1:3100/ready`
|
|
|
|
Prometheus
|
|
|
|
`http://127.0.0.1:9090`
|
|
|
|
|
|
### Auth
|
|
|
|
Open Grafana, default creds are `admin`/`admin`.
|
|
|
|
### Data Source
|
|
|
|
In Grafana, both data sources have to be added manually atm.
|
|
|
|
---
|
|
|
|
## Changelog
|
|
|
|
from initial project
|
|
|
|
- Removed Tempo/Mimir
|
|
- Loki Config `loki-local-config.yaml`
|
|
- `store: boltdb-shipper` > `store: tsdb`
|
|
- `schema: v11` > `schema: v13`
|
|
|
|
## Links
|
|
|
|
[Initial Article](https://grafana.com/blog/2022/09/08/how-to-deploy-the-mnsn-log-stack-using-podman/)
|
|
|
|
## TODO
|
|
|
|
- [ ] Authentication for Loki
|
|
- [ ] Hardening container
|
|
- [ ] improve documentation
|
|
- [ ] automated config and source management
|