fuse-prom-target
fuse-prom-target copied to clipboard
Serves data to Prometheus about Fuse
fuse-prom-target
Serves data to Prometheus about Fuse. Currently in use at metrics.rari.capital
Usage
-
First add
localhost:1337as a scrape target in yourprometheus.yml. -
Then startup
fuse-prom-targetby running:
npm run start-pm2
-
This will startup two pm2 tasks. One named
fuse-prom-targetand the other namedfuse-prom-proxy. The target actually fetches data, while the proxy just sits in front of the data and caches it in case the target goes down or gets restarted (to prevent downtime!) -
If you modify
target.ts(like to add new metrics), simply runpm2 restart fuse-prom-target.- This will restart the target, but not the proxy which will cache the last returned metrics and serve them while your target restarts.
Grafana
JSON configuration for 5 dashboards that can be constructed with the data provided from fuse-prom-target is available in the dashboards directory!