upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/.env.example
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-12-04 15:17:04 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-12-04 15:24:19 +0000
commitfd0c87c787d0626b3546fa571541c9c809711821 (patch)
tree934f20d973127f380b807d2bd44b25c197cf349c /.env.example
parent762cd8e815e797f173f541795de774fbbf978fc3 (diff)
add prometheus metrics
Diffstat (limited to '.env.example')
-rw-r--r--.env.example20
1 files changed, 20 insertions, 0 deletions
diff --git a/.env.example b/.env.example
index 0a93b1f..9207dc4 100644
--- a/.env.example
+++ b/.env.example
@@ -72,6 +72,26 @@
72# NGIT_DATABASE_BACKEND=lmdb 72# NGIT_DATABASE_BACKEND=lmdb
73 73
74# ============================================================================ 74# ============================================================================
75# METRICS
76# ============================================================================
77
78# Enable Prometheus metrics endpoint at /metrics
79# CLI: --metrics-enabled
80# Default: true
81# NGIT_METRICS_ENABLED=true
82
83# Connections per IP before flagging as potential abuse in metrics
84# (display only, no rate limiting - purely for monitoring visibility)
85# CLI: --metrics-connection-per-ip-abuse-threshold <count>
86# Default: 10
87# NGIT_METRICS_CONNECTION_PER_IP_ABUSE_THRESHOLD=10
88
89# Number of top bandwidth repositories to track in metrics
90# CLI: --metrics-top-n-repos <count>
91# Default: 10
92# NGIT_METRICS_TOP_N_REPOS=10
93
94# ============================================================================
75# LOGGING 95# LOGGING
76# ============================================================================ 96# ============================================================================
77 97