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
Merge pull request #964 from tidepool-org/darin/dexcom-slowdown
- Refactor task queue to resolve task-related failures
- Remove priority and expiration time from task as unused
- Add task timeout watchdog
- Add name to queue for debugging purposes
- Add revision condition to task Client and Repository API
- Set default available time for a new task to now
- Update runner deadline to return duration, not time
- Add Prometheus metrics to Dexcom client
- Add Prometheus metrics to task queue
- Add serialization mutex to test logger
- Require OAuth client to specify configured http client
- Capture response metrics on all outgoing OAuth client requests
- Add Prometheus helpers for outgoing clients
- Add common CloseCursor function to properly close Mongo cursors and log errors
- Add and update tests
- Fix typos
- https://tidepool.atlassian.net/browse/BACK-4523
- https://tidepool.atlassian.net/browse/BACK-4553
Copy file name to clipboardExpand all lines: README.md
+44Lines changed: 44 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -159,3 +159,47 @@ Review all pending changes to all dependencies. If any changes could have a nega
159
159
Ensure the `ci-build` and `ci-test` Makefile targets pass using the target Golang version.
160
160
161
161
If you previously noted any changes or issues of concern, perform any explicit tests necessary.
162
+
163
+
## Prometheus Metrics
164
+
165
+
See source files for further details about and usage of each metric.
166
+
167
+
### Summary Store
168
+
169
+
*`tidepool_summary_queue_lag` - (histogram) - the current summary queue lag, in minutes
170
+
*`tidepool_summary_queue_length` - (gauge) - the current summary queue length, in number of summaries
171
+
172
+
### C2C
173
+
174
+
#### Abbott
175
+
176
+
*`tidepool_abbott_api_request_count` - (counter) - Abbott API request count, sorted by method, path, and status
177
+
*`tidepool_abbott_api_request_duration_seconds` - (histogram) - Abbott API duration of each request, in seconds, sorted by method, path, and status
178
+
179
+
#### Dexcom
180
+
181
+
*`tidepool_dexcom_api_request_count` - (counter) - Dexcom API request count, sorted by method, path, and status
182
+
*`tidepool_dexcom_api_request_duration_seconds` - (histogram) - Dexcom API duration of each request, in seconds, sorted by method, path, and status
183
+
*`tidepool_dexcom_api_request_time_seconds` - (histogram) - Dexcom API duration of each request, as reported in the "request-time" response header from Dexcom, in seconds, sorted by method, path, and status
184
+
185
+
#### Oura
186
+
187
+
*`tidepool_oura_api_request_count` - (counter) - Oura API request count, sorted by method, path, and status
188
+
*`tidepool_oura_api_request_duration_seconds` - (histogram) - Oura API duration of each request, in seconds, sorted by method, path, and status
189
+
190
+
### Task
191
+
192
+
#### Queue
193
+
194
+
*`tidepool_task_workers_total` - (gauge) - configured number of task queue workers, sorted by queue (per config)
195
+
*`tidepool_task_workers_available` - (gauge) - number of available task queue workers, sorted by queue
196
+
*`tidepool_task_runner_not_found_total` - (counter) - total number of task runs with no registered runner for the task type, sorted by type (ideally zero)
197
+
*`tidepool_task_run_duration_seconds` - (histogram) - duration of task runs in seconds, sorted by type
198
+
*`tidepool_task_runner_timeout_exceeded_total` - (counter) - total number of task runs that exceeded the runner timeout, sorted by type and disposition ("blocked", "recovered") (ideally zero)
199
+
*`tidepool_task_run_panic_total` - (counter) - total number of task runs that panicked, sorted by type (ideally 0)
200
+
201
+
#### Store
202
+
203
+
*`tidepool_task_type_state_total` - (counter) - total number of tasks run, sorted by type and state
204
+
*`tidepool_task_type_lost_completion_total` - (counter) - total number of task completions dropped because the claim-token compare-and-swap missed, sorted by type (ideally low-ish)
205
+
*`tidepool_task_type_revision_mismatch_total` - (counter) - total number of task revisions that do not match the task revision in the database, sorted by type (ideally zero)
0 commit comments