Skip to content

Rari-Capital/fuse-prom-target

Repository files navigation

fuse-prom-target

Serves data to Prometheus about Fuse. Currently in use at metrics.rari.capital

Usage

  1. First add localhost:1337 as a scrape target in your prometheus.yml.

  2. 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 named fuse-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 run pm2 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!

Demo

About

Serves data to Prometheus about Fuse

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published