lukaszraczylo
2911dd9b1d
perf(monitoring): cache hostname and bound the label-key cache
...
get_metrics_name called os.Hostname on every metrics call and keyed a
never-evicted cache by label values. The hostname is now resolved once
and the cache is keyed by label names, so it cannot grow with high
cardinality values. The metrics listener also honours a graceful
shutdown context.
2026-08-14 11:10:15 +01:00
lukaszraczylo
7ada94e4fa
Fix nil pointers + improve the cleanup.
2025-11-11 10:43:07 +00:00
lukaszraczylo
6261be6e53
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Update go.mod and go.sum
2025-11-06 16:55:12 +00:00
lukaszraczylo
e36cdf099e
fixup! Update go.mod and go.sum
2025-11-05 10:27:18 +00:00
lukaszraczylo
98a5234ff6
fixup! Gofmt the codebase.
2025-02-26 01:03:44 +00:00
lukaszraczylo and GitHub
d141fe3c04
Fix the introduced bug where RO endpoint could've been accidentally used. ( #17 )
...
* Fix the introduced bug where RO endpoint could've been accidentally used.
2024-06-28 21:48:39 +01:00
lukaszraczylo and GitHub
b10a28bf52
General code optimisations. ( #16 )
...
* General code optimisations.
2024-06-28 12:31:01 +01:00
lukaszraczylo
f7babe93d9
fixup! Disable caller as it's not necessary and generates slight delay.
2024-06-20 08:41:33 +01:00
12e4237997
divide long functions, replace strings.builder with bytes.buffer. ( #13 )
...
Co-authored-by: Chris Clayton <[email protected] >
2024-06-17 10:23:41 +01:00
lukaszraczylo
2e40ee0c62
Update the helpers to sort labels alpabetically.
...
It will help to avoid the flaky tests and duplicated metrics.
As a bonus - added tests and benchmarks for monitoring package.
2024-06-11 19:57:18 +01:00
lukaszraczylo and GitHub
ce344d17eb
Add read only replica ( #11 )
...
* Improve stats gathering.
2024-03-13 23:09:38 +00:00
lukaszraczylo
30528e4a9a
Sort labels by keys before pushing them to metrics registry.
...
This is needed to ensure that labels are always in the same order and
metrics won't produce duplicates.
2023-11-17 14:36:23 +00:00
lukaszraczylo
1a790ffb52
Make sure that pod name is included in metrics.
2023-11-16 17:18:27 +00:00
lukaszraczylo
1a3628837f
Extract helper libraries from private repo of telegram-bot.app
2023-10-10 22:16:50 +01:00