Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rbalahadia/grafana-prometheus
- Owner: rbalahadia
- License: gpl-3.0
- Created: 2024-09-02T07:55:35.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-28T07:40:45.000Z (about 1 month ago)
- Last Synced: 2024-09-30T08:02:24.135Z (about 1 month ago)
- Topics: grafana, node-exporter, prometheus
- Language: Shell
- Homepage:
- Size: 80.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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