Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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).

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
- Promtail

This 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: general

roles:
- role: ansible-monitoring
```