Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bro-n-bro/prometheus_exporter
Prometheus exporter
https://github.com/bro-n-bro/prometheus_exporter
Last synced: 8 days ago
JSON representation
Prometheus exporter
- Host: GitHub
- URL: https://github.com/bro-n-bro/prometheus_exporter
- Owner: bro-n-bro
- Created: 2021-09-21T19:39:51.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-17T15:06:42.000Z (over 1 year ago)
- Last Synced: 2024-05-19T00:36:05.454Z (6 months ago)
- Language: Python
- Size: 47.9 KB
- Stars: 3
- Watchers: 0
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Grafana Crypto Charts
![image](https://user-images.githubusercontent.com/89855562/136545701-33d3d2b0-9721-4188-8e63-3eba4276577a.png)To create the same dashboard you need:
1. Install Grafana [Grafana and prometheus](https://github.com/CyberObiOne/node-monitoring-setup)
2. Python3Install prometheus_client for python
```
pip3 install prometheus_client
pip3 install json
pip3 install requests
```Edit /etc/prometheus/prometheus.yml and add following lines:
```
- job_name: 'your_name'
scrape_interval: 5s
static_configs:
- targets: ['localhost:8001']
```
8001 port is the same as in blockchain_stats.py file (juno,akash,etc)Restart prometheus
```
systemctl restart prometheus.service
```Run blockchain_stats.py file
!!! Don't forget to update LCD_ENDPOINT with your API endpoints.```
python3 blockchain_stats.py (juno,akash,etc)
```All metrics will be imported to prometheus and you can use them in Grafana now.
You can easily add your metrics to api_calls.py file and than add to blockchain_stats.py (juno,akash,etc)
Also you can export my dashboard configurations (.json file in blockchain name folder) and apply them for your needs.