Prometheus
is an open-source systems monitoring and alerting toolkit.
Links#
- Docs: https://prometheus.io/docs/prometheus/latest/configuration/configuration/
- Issues: https://github.com/prometheus/prometheus/issues
- Source: https://github.com/prometheus/prometheus
- License: Apache-2.0
- Awesome-Alerts: https://samber.github.io/awesome-prometheus-alerts/
Config Files#
| Name | Default | Type | Description |
|---|---|---|---|
ALLOW_FROM | TODO | /^<IP>\/[0-9]+$/ | Federation address/CIDR; space separated |
AM_LISTEN | TODO | /<IP>/ | Alertmanager listen address |
LABEL_INSTANCE | TODO | /^[a-Z0-9.-]+/ | Value of the instance label; default=HOSTNAME |
LISTEN | TODO | /<IP>/ | Listen address |
PORT | TODO | /[1-9][0-9][0-9][0-9]+/ | Listen port |
RETENTION_TIME | TODO | /^[1-9][0-9]*(y|w|d|h|m|s|ms)$/ | Storage retention time |
SHA256 | TODO | /^[0-9a-f]+$/ | SHA256sum of sha256sums.txt |
VERSION | TODO | /^[0-9.]+$/ | application version |
WWW_PREFIX | TODO | /\/.*/ | External URL PREFIX |
WWW_URL | TODO | /^http.*/ | External URL; default: http://FQHN:PORT |
scrapes/prometheus.d/self.ymlscrapes/node.d/self.ymlscrapes/crowdsec.d/self.ymlscrapes/blackbox.d/self.ymlscrapes/alertmanager.d/self.ymlprometheus.ymlapp.servicealerts/prometheus.ymlalerts/node.ymlalerts/crowdsec.ymlalerts/blackbox.ymlalerts/alertmanager.yml
Use#
TODO
- https://anarc.at/blog/2020-06-04-replacing-smokeping-prometheus/
- ufw allow ping from prometheus
- https://medium.com/schkn/monitoring-disk-i-o-on-linux-with-the-node-exporter-f8ff8b5249e0
- https://samber.github.io/awesome-prometheus-alerts/
- https://monitoring.mixins.dev/node-exporter/
- postgres-exporter
- reference modul values via
echo '{{hostname/HOST_NAME}}' > prometheus/files/LABEL_INSTANCE - support ARCH
- inject --web.enable-admin-api
