Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imrein/ansible-monitoring
Role to setup monitoring tools (grafana, prometheus, node_exporter, loki & promtail).
https://github.com/imrein/ansible-monitoring
ansible ansible-role grafana loki prometheus promtail role
Last synced: 2 months ago
JSON representation
Role to setup monitoring tools (grafana, prometheus, node_exporter, loki & promtail).
- Host: GitHub
- URL: https://github.com/imrein/ansible-monitoring
- Owner: imrein
- License: mit
- Created: 2023-01-12T17:18:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-16T09:54:04.000Z (about 1 year ago)
- Last Synced: 2023-12-16T10:53:57.599Z (about 1 year ago)
- Topics: ansible, ansible-role, grafana, loki, prometheus, promtail, role
- Homepage:
- Size: 38.1 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Monitoring ansible setup
![]()
![]()
![]()
![]()
## Overview
Role to setup a new monitoring server. This stack is modular and comes with:
- Grafana
- Prometheus
- Node_exporter
- Loki
- PromtailThis has been tested on:
- RHEL based distros
- Debian
- Ubuntu## Requirements
A machine with an SSH connection.
## Role Variables
The variables are defined in `defaults/main.yml`. These should be configured as needed:
| Variable | Default | Info |
| :------- | :------ | :--- |
| `download_location` | `/tmp` | Download location |
| `packages` | `[]` | General packages that should be installed |
| --- | | |
| `prometheus_install` | `true` | Should prometheus be installed? |
| `prometheus_user` | `prometheus` | User for prometheus installation |
| --- | | |
| `exporter_install` | `true` | Should node_exporter be installed? |
| `exporter_user` | `node_exporter` | User for node_exporter installation |
| --- | | |
| `loki_install` | `true` | Should loki be installed? |
| `loki_user` | `loki` | User for loki installation |
| --- | | |
| `promtail_install` | `true` | Should promtail be installed? |
| `promtail_user` | `promtail` | User for promtail installation |## Warnings
The ports can also be changed for more security (might be a future variable).
## Example playbook
```yml
---
- name: test playbook
hosts: generalroles:
- role: ansible-monitoring
```