Skip to content

Commit 16fdcc3

Browse files
committed
improve docs
1 parent a5409a5 commit 16fdcc3

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/common/core/metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
flagsmith_build_info = prometheus_client.Gauge(
66
"flagsmith_build_info",
7-
"Flagsmith version and build information",
7+
"Flagsmith version and build information.",
88
["ci_commit_sha", "version"],
99
multiprocess_mode="livemax",
1010
)

src/common/gunicorn/metrics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66

77
flagsmith_http_server_requests_total = prometheus_client.Counter(
88
"flagsmith_http_server_requests_total",
9-
"Total number of HTTP requests",
9+
"Total number of HTTP requests.",
1010
["route", "method", "response_status"],
1111
)
1212
flagsmith_http_server_request_duration_seconds = Histogram(
1313
"flagsmith_http_server_request_duration_seconds",
14-
"HTTP request duration in seconds",
14+
"HTTP request duration in seconds.",
1515
["route", "method", "response_status"],
1616
)
1717
flagsmith_http_server_response_size_bytes = Histogram(
1818
"flagsmith_http_server_response_size_bytes",
19-
"HTTP response size in bytes",
19+
"HTTP response size in bytes.",
2020
["route", "method", "response_status"],
2121
buckets=getattr(
2222
settings,

src/task_processor/metrics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55

66
flagsmith_task_processor_enqueued_tasks_total = prometheus_client.Counter(
77
"flagsmith_task_processor_enqueued_tasks_total",
8-
"Total number of enqueued tasks",
8+
"Total number of enqueued tasks.",
99
["task_identifier"],
1010
)
1111

1212
if settings.DOCGEN_MODE or settings.TASK_PROCESSOR_MODE:
1313
flagsmith_task_processor_finished_tasks_total = prometheus_client.Counter(
1414
"flagsmith_task_processor_finished_tasks_total",
15-
"Total number of finished tasks",
15+
"Total number of finished tasks. Only collected by Task Processor. `task_type` label is either `recurring` or `standard`.",
1616
["task_identifier", "task_type", "result"],
1717
)
1818
flagsmith_task_processor_task_duration_seconds = Histogram(
1919
"flagsmith_task_processor_task_duration_seconds",
20-
"Task processor task duration in seconds",
20+
"Task processor task duration in seconds. Only collected by Task Processor. `task_type` label is either `recurring` or `standard`.",
2121
["task_identifier", "task_type", "result"],
2222
)

0 commit comments

Comments
 (0)