mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-20 10:57:09 +00:00
document prometheus API
* enable in dev and test env * fix api/repos doc
This commit is contained in:
1 parent
809ab47042
commit
a20eb6866a
4 files changed
+10
-1
No files matched your search
@@ -18,6 +18,12 @@ import (
|
||||
|
||||
var context *ctx.AptlyContext
|
||||
|
||||
// @Summary Get Metrics
|
||||
// @Description **Get Prometheus Metrics**
|
||||
// @Tags Status
|
||||
// @Produce text/plain
|
||||
// @Success 200 {string} string Metrics
|
||||
// @Router /api/metrics [get]
|
||||
func apiMetricsGet() gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
countPackagesByRepos()
|
||||
|
||||
Reference in new issue
Block a user