Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/rbalahadia/grafana-prometheus

This is an automated way of creating a grafana container alongside prometheus
https://github.com/rbalahadia/grafana-prometheus

grafana node-exporter prometheus

Last synced: 25 days ago
JSON representation

This is an automated way of creating a grafana container alongside prometheus

Awesome Lists containing this project

README

        

# Grafana-Prometheus
_This is an automated way of creating a grafana container alongside prometheus_

Requirements:

- Ansible

- Docker

- docker-compose:1.17.1

- Linux

How to run it in your local/server:


1. Clone the latest version

2. Update Docker/grafana_prometheus.yml for default username and password of Grafana.

3. Install the Grafana + Prometheus server and node_exporter in local machine.

command: ansible-playbook -i Inventory/hosts Grafana-prometheus.yml --tag local

4. Install node-exporter to your target servers.

command: ansible-playbook -i Inventory/targets --limit all-targets Grafana-prometheus.yml --tag target_instance

5. Check localhost:3000 to access the Grafana console via browser.

6. Check localhost:9090 to access prometheus console via browser.

7. Access localhost:9100/metrics to see if node_exporter is generating metrics via browser.

8. Prometheus datasource will be automatically added to the sources.

![image](https://github.com/user-attachments/assets/6b426a4a-c008-43da-ae19-83b93cd9bc67)

9. A dashboard will be automatically created based on https://grafana.com/grafana/dashboards/1860-node-exporter-full/ dashboard.

![image](https://github.com/user-attachments/assets/bc988770-b4fe-4962-bd47-580ece6b20a5)

If you're having issues running this script, please raise an Issue in this repository.

Created by **rbalahadia**
Thank you