This repository contains SaltStack states for installing and configuring the Prometheus monitoring system. It is intended for my personal use but it should be structured so it can be used or modified by anyone.
There are two main components of this configuration, the server.sls
state and the client.sls
state.
server.sls
does the following:
- User and Group Creation: Sets up a prometheus user and group to run the Prometheus service.
- Prometheus Installation: Downloads, extracts and installs the Prometheus binary (version 2.48.1) from the official source.
- Configuration Management: Manages the Prometheus configuration and service files.
client.sls
does the following:
- Installation of client agent: Downloads and installs
node-exporter
to provide metrics to the Prometheus server.
- Clone the Repository: Clone this repository to your Salt master or appropriate location.
- Customize: Modify the
prometheus.yml
andprometheus.service
files in thefiles
directory as needed for your setup. - Apply the States: Target your intended nodes and apply the respective state.
- Client State
- Node Exporter... works for most cases?
- Config files
This project is open-sourced under the MIT License.