Serves data to Prometheus about Fuse. Currently in use at metrics.rari.capital
-
First add
localhost:1337
as a scrape target in yourprometheus.yml
. -
Then startup
fuse-prom-target
by running:
npm run start-pm2
-
This will startup two pm2 tasks. One named
fuse-prom-target
and 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.
JSON configuration for 5 dashboards that can be constructed with the data provided from fuse-prom-target
is available in the dashboards directory!