Add Prometheus metrics endpoint #14

Merged
localhorst merged 12 commits from feat/prometheus into main 2025-01-26 10:03:28 +01:00
Owner
No description provided.
localhorst added the
Kind/Feature
label 2025-01-11 22:00:04 +01:00
localhorst self-assigned this 2025-01-11 22:00:04 +01:00
localhorst added 1 commit 2025-01-11 22:00:04 +01:00
localhorst added 1 commit 2025-01-11 22:59:12 +01:00
localhorst added 1 commit 2025-01-11 23:38:48 +01:00
localhorst added 1 commit 2025-01-14 21:03:47 +01:00
localhorst added 1 commit 2025-01-15 17:32:36 +01:00
localhorst added 1 commit 2025-01-16 21:50:04 +01:00
localhorst added 1 commit 2025-01-18 19:01:16 +01:00
localhorst added 1 commit 2025-01-18 19:36:48 +01:00
Pheanox approved these changes 2025-01-20 20:57:23 +01:00
Dismissed
@ -0,0 +55,4 @@
name: `${prefix}ttn_gateway_receptions`,
help: "Total number of TTN Gateway receptions entries in database",
labelNames: ["database"],
});
Collaborator

Ich würde das in eine extra Datei auslagern

Ich würde das in eine extra Datei auslagern
localhorst marked this conversation as resolved
@ -0,0 +68,4 @@
wifiLocationTotal.set((await wifiLocationService.getAllWifiLocations()).length);
wifiLocationNotResolvable.set((await wifiLocationService.getAllWifiLocationsByNotResolvable()).length);
wifiLocationRequestLimitExceeded.set((await wifiLocationService.getAllWifiLocationsByRequestLimitExceeded()).length);
ttnGatewayReceptions.set((await ttnGatewayReceptionService.getAllGatewayReceptions()).length);
Collaborator

Ich würde auf jedenfall hier auf alle promises gleichzeitig warten mit Promise.all. Damit es wieder gleichzeitig abgearbeitet werden kann. Und dann weil sonst der Controller zu voll wird, würde ich das vermutlich in einen MetricService auslagern

Ich würde auf jedenfall hier auf alle promises gleichzeitig warten mit Promise.all. Damit es wieder gleichzeitig abgearbeitet werden kann. Und dann weil sonst der Controller zu voll wird, würde ich das vermutlich in einen MetricService auslagern
localhorst marked this conversation as resolved
localhorst added 1 commit 2025-01-25 18:50:28 +01:00
localhorst added 1 commit 2025-01-25 19:08:33 +01:00
localhorst added 1 commit 2025-01-25 19:10:13 +01:00
localhorst changed title from WIP: Add Prometheus metrics endpoint to Add Prometheus metrics endpoint 2025-01-25 19:10:20 +01:00
localhorst added 1 commit 2025-01-25 19:14:22 +01:00
Pheanox requested review from Pheanox 2025-01-26 00:03:40 +01:00
Pheanox approved these changes 2025-01-26 00:04:07 +01:00
localhorst merged commit d04bdb3ac1 into main 2025-01-26 10:03:28 +01:00
localhorst deleted branch feat/prometheus 2025-01-26 10:03:28 +01:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: localhorst/LocationHub#14
No description provided.