mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-17 19:40:54 +00:00
socketserver: Also serve metrics in Prometheus format
The prometheus format allows specifying which metrics are instantaneous ("gauge") and which are cumulative over time ("counter") and is gaining popularity as a standard metrics serving format.
This commit is contained in:
parent
8f96b0e3e3
commit
f22d98f6be
2 changed files with 86 additions and 8 deletions
|
@ -90,6 +90,7 @@ func SetupServerAndHandle(config *ConfigFile, serveMux *http.ServeMux) {
|
|||
serveMux.Handle("/.well-known/", http.FileServer(http.Dir("/tmp/letsencrypt/")))
|
||||
serveMux.HandleFunc("/healthcheck", HTTPSayOK)
|
||||
serveMux.HandleFunc("/stats", HTTPShowStatistics)
|
||||
serveMux.HandleFunc("/metrics", HTTPShowStatisticsPrometheus)
|
||||
serveMux.HandleFunc("/hll/", HTTPShowHLL)
|
||||
serveMux.HandleFunc("/hll_force_write", HTTPWriteHLL)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue