-
Notifications
You must be signed in to change notification settings - Fork 12
Guide to Custom Metrics Backend
akshat edited this page Oct 20, 2023
·
5 revisions
Goose natively supports StatsD Metrics Backend. Users might be using a different backend like Prometheus, metrics.clojure, etc. We've provided an option to integrate a custom metric backend.
As a start, refer to the implementation of StatsD.
Go through these steps to implement a Metric Backend plugin:
- Implement all functions of Metrics Protocol
-
enabled?
returnsTruthy
if metrics are enabled,Falsy
otherwise -
gauge
,increment
&timing
functions correspond to standard data types of metrics- They take a
key
,value in the context of the data type
&a map of tags
- Publish metrics to your backend or store it in-memory for scraping by metrics server
- They take a
Previous: Monitoring & Alerting Next: Middlewares
Home | Getting Started | RabbitMQ | Redis | Error Handling | Monitoring | Production Readiness | Troubleshooting
Need help? Open an issue or ping us on #goose @Clojurians slack.