You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `saas_mode` fixture makes all `common.core.utils.is_saas` calls return `True`.
64
64
65
-
######`enterprise_mode`
65
+
##### `enterprise_mode`
66
66
67
67
The `enterprise_mode` fixture makes all `common.core.utils.is_enterprise` calls return `True`.
68
68
69
-
#####Markers
69
+
#### Markers
70
70
71
-
######`pytest.mark.saas_mode`
71
+
##### `pytest.mark.saas_mode`
72
72
73
73
Use this mark to auto-use the `saas_mode` fixture.
74
74
75
-
######`pytest.mark.enterprise_mode`
75
+
##### `pytest.mark.enterprise_mode`
76
76
77
77
Use this mark to auto-use the `enterprise_mode` fixture.
78
78
79
-
####Metrics
79
+
### Metrics
80
80
81
81
Flagsmith uses Prometheus to track performance metrics.
82
82
83
83
The following default metrics are exposed:
84
84
85
-
#####Common metrics
85
+
#### Common metrics
86
86
87
87
-`flagsmith_build_info`: Has the labels `version` and `ci_commit_sha`.
88
88
-`flagsmith_http_server_request_duration_seconds`: Histogram labeled with `method`, `route`, and `response_status`.
89
89
-`flagsmith_http_server_requests_total`: Counter labeled with `method`, `route`, and `response_status`.
90
-
-`flagsmith_http_server_response_size_bytes`:Histogram labeled with `method`, `route`, and `response_status`.
90
+
-`flagsmith_http_server_response_size_bytes`:Histogram labeled with `method`, `route`, and `response_status`.
91
91
-`flagsmith_task_processor_enqueued_tasks_total`: Counter labeled with `task_identifier`.
92
92
93
-
#####Task Processor metrics
93
+
#### Task Processor metrics
94
94
95
95
-`flagsmith_task_processor_finished_tasks_total`: Counter labeled with `task_identifier`, `task_type` (`"recurring"`, `"standard"`) and `result` (`"success"`, `"failure"`).
96
96
-`flagsmith_task_processor_task_duration_seconds`: Histogram labeled with `task_identifier`, `task_type` (`"recurring"`, `"standard"`) and `result` (`"success"`, `"failure"`).
97
97
98
-
#####Guidelines
98
+
#### Guidelines
99
99
100
100
Try to come up with meaningful metrics to cover your feature with when developing it. Refer to [Prometheus best practices][1] when naming your metric and labels.
0 commit comments