Skip to content

Commit ebaa535

Browse files
committed
Explain metrics endpoint availability on port 9100
1 parent 1ecfc8d commit ebaa535

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/common/core/templates/docgen-metrics.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ sidebar_position: 20
66

77
## Prometheus
88

9-
To enable the Prometheus `/metrics` endpoint, set the `PROMETHEUS_ENABLED` environment variable to `true`.
9+
To enable the Prometheus `/metrics` endpoint, set the `PROMETHEUS_ENABLED` environment variable to `true`.
10+
11+
When enabled, Flagsmith serves the `/metrics` endpoint on a standalone HTTP server on port 9100, separate from the main API server. This design ensures that metrics collection remains available even when the main API is under heavy load.
1012

1113
The metrics provided by Flagsmith are described below.
1214

tests/integration/core/snapshots/test_docgen__metrics__runs_expected.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ sidebar_position: 20
66

77
## Prometheus
88

9-
To enable the Prometheus `/metrics` endpoint, set the `PROMETHEUS_ENABLED` environment variable to `true`.
9+
To enable the Prometheus `/metrics` endpoint, set the `PROMETHEUS_ENABLED` environment variable to `true`.
10+
11+
When enabled, Flagsmith serves the `/metrics` endpoint on a standalone HTTP server on port 9100, separate from the main API server. This design ensures that metrics collection remains available even when the main API is under heavy load.
1012

1113
The metrics provided by Flagsmith are described below.
1214

0 commit comments

Comments
 (0)