summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/metrics.go
diff options
context:
space:
mode:
authorMatt Holt <mholt@users.noreply.github.com>2022-09-16 13:32:49 -0600
committerGitHub <noreply@github.com>2022-09-16 13:32:49 -0600
commit74547f5bedafcb59fc25f14b43301f33a40f9416 (patch)
tree6ee9a33eda407f03241402cf74d1deeee9676204 /modules/caddyhttp/metrics.go
parent258071d857aa8d1524161cb7273f960f24162ce9 (diff)
caddyhttp: Make metrics opt-in (#5042)
* caddyhttp: Make metrics opt-in Related to #4644 * Make configurable in Caddyfile
Diffstat (limited to 'modules/caddyhttp/metrics.go')
-rw-r--r--modules/caddyhttp/metrics.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/caddyhttp/metrics.go b/modules/caddyhttp/metrics.go
index 458c22a..64fbed7 100644
--- a/modules/caddyhttp/metrics.go
+++ b/modules/caddyhttp/metrics.go
@@ -11,6 +11,10 @@ import (
"github.com/prometheus/client_golang/prometheus/promauto"
)
+// Metrics configures metrics observations.
+// EXPERIMENTAL and subject to change or removal.
+type Metrics struct{}
+
var httpMetrics = struct {
init sync.Once
requestInFlight *prometheus.GaugeVec