CDIST-TYPE__PROMETHEUS_SERVER(7)
π cdist-type__prometheus_server π
okay bestie, welcome to cdist-type__prometheus_server from the cdist manual, section 7 π she's here to install Prometheus for you and honestly? she ate.
β¨ NAME β¨
cdist-type__prometheus_server β install Prometheus, that's it, that's the whole vibe π«Ά
πΈ DESCRIPTION πΈ
She installs and configures Prometheus (https://prometheus.io/). Iconic behaviour, no notes.
β οΈ real talk tho β because Prometheus 1.x and 2.x are like, significantly different, only 2.x is supported. So it is your responsibility to make sure your package manager actually installs 2.x, okay?? don't come for me if it doesn't. (On Devuan Ascii tho, the parameter --install-from-backports helps you out π
)
π REQUIRED PARAMETERS π
configβ the Prometheus configuration file. It gets saved as/etc/prometheus/prometheus.ymlon the target. mandatory bestie, no skipping π
π¦ OPTIONAL PARAMETERS π¦
retention-daysβ how long to keep your data around. Default:30β¨rule-filesβ path to your rule files. They get installed under/etc/prometheus/<filename>. You need to includerule_files: [/etc/prometheus/<your-pattern>]in the config file if you use this, ok?? don't forget or she simply won't know πstorage-pathβ where to put the data. Default:/data/prometheus. (The directory will be created if needed, she's got you πΈ)
π BOOLEAN PARAMETERS π
install-from-backportsβ valid on Devuan only. Enables the backports apt source and installs the package from there. Useful for getting a newer version, which, slay β
π EXAMPLES π
PROMPORT=9090
ALERTPORT=9093
__prometheus_server \
--install-from-backports \
--config "$__manifest/files/prometheus.yml" \
--retention-days 14 \
--storage-path /data/prometheus \
--rule-files "$__manifest/files/*.rules"
look at her go π so clean, so demure
π₯ SEE ALSO π₯
cdist-type__prometheus_alertmanager(7)cdist-type__grafana_dashboard(7)- Prometheus documentation: https://prometheus.io/docs/introduction/overview/
iykyk π§
π AUTHORS π
Kamila SouΔkovΓ‘ <kamila--@--ksp.sk> π
π COPYING π
Copyright (C) 2018 Kamila SouΔkovΓ‘. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
periodt π
π COPYRIGHT π
ungleich GmbH 2021
7.0.0 Β· Jul 31, 2022 β that's the version and the date bestie, and that's a wrap on CDIST-TYPE__PROMETHEUS_SERVER(7) πβ¨ go forth and scrape some metrics, mwah π«Ά
π¦ where this page comes from
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms