Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lhsradek/platypus-prometheus
Prometheus monitoring + Grafana
https://github.com/lhsradek/platypus-prometheus
grafana httpd metrics monitoring nginx postgresql prometheus tomcat wildfly
Last synced: 26 days ago
JSON representation
Prometheus monitoring + Grafana
- Host: GitHub
- URL: https://github.com/lhsradek/platypus-prometheus
- Owner: lhsradek
- License: mit
- Created: 2023-02-21T17:18:05.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-05T02:10:36.000Z (8 months ago)
- Last Synced: 2024-05-05T04:33:50.006Z (8 months ago)
- Topics: grafana, httpd, metrics, monitoring, nginx, postgresql, prometheus, tomcat, wildfly
- Language: Shell
- Homepage:
- Size: 2.59 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Platypus Prometheus + Grafana
## Setup
1) create .env file ```cp .env.dist .env```
2) create index.html ```cp application/html/index.html.orig application/html/index.html``` That's because I'm using different ports
3) run docker ```./bin/start```
4) Set Data sources in Grafana to Prometheus ```http://host.docker.internal:9090``` or try ```ip addr show docker0```
5) Import Dashboard **Prometheus 2.0 Stats** to Grafana
6) restart docker ```./bin/restart```
```
================= STOP =================
Stopping www-monitor-grafana ... done
Stopping www-monitor-prometheus ... done
Stopping www-monitor-nginx-exporter ... done
Stopping www-monitor-postgres ... done
Stopping www-monitor-tomcat-exporter ... done
Stopping www-monitor-tomcat ... done
Stopping www-monitor-postgres-exporter ... done
Stopping www-monitor-wildfly ... done
Stopping www-monitor-nginx ... done
Stopping www-monitor-httpd-exporter ... done
Stopping www-monitor-httpd ... done
Removing www-monitor-grafana ... done
Removing www-monitor-prometheus ... done
Removing www-monitor-nginx-exporter ... done
Removing www-monitor-postgres ... done
Removing www-monitor-tomcat-exporter ... done
Removing www-monitor-tomcat ... done
Removing www-monitor-postgres-exporter ... done
Removing www-monitor-wildfly ... done
Removing www-monitor-nginx ... done
Removing www-monitor-httpd-exporter ... done
Removing www-monitor-httpd ... done
Network monitor.local is external, skipping
================= START =================
Creating www-monitor-postgres ... done
Creating www-monitor-wildfly ... done
Creating www-monitor-httpd-exporter ... done
Creating www-monitor-tomcat ... done
Creating www-monitor-tomcat-exporter ... done
Creating www-monitor-postgres-exporter ... done
Creating www-monitor-nginx ... done
Creating www-monitor-httpd ... done
Creating www-monitor-prometheus ... done
Creating www-monitor-grafana ... done
Creating www-monitor-nginx-exporter ... done
```7) stop docker ```./bin/stop```
User **1001** will write to the directories **./data/prometheus** and **./data/grafana** so it needs rights to those directories.
We monitor (with platypus) httpd, nginx, postgres, prometheus, tomcat and wildfly.
See:
* [prometheus](https://github.com/lhsradek/platypus-prometheus/blob/main/png/prometheus.png)
* [grafana](https://github.com/lhsradek/platypus-prometheus/blob/main/png/grafana.png)