Commit Graph

34 Commits

Author SHA1 Message Date
d4472e1ab2 partially fix race cond
Some checks failed
codeql / analyze (go) (push) Failing after 49s
build / test (push) Failing after 4m54s
build / lint (push) Successful in 9m28s
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-11-08 15:27:05 +03:00
6f6d362c20 experimental race free labels
Some checks failed
codeql / analyze (go) (push) Failing after 44s
build / test (push) Failing after 4m52s
build / lint (push) Successful in 9m27s
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-11-07 16:49:16 +03:00
dd71d9ec59 add locking
Some checks failed
codeql / analyze (go) (push) Failing after 44s
build / test (push) Failing after 4m56s
build / lint (push) Successful in 9m35s
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-11-06 00:00:17 +03:00
da9201efff lower memory usage
Some checks failed
codeql / analyze (go) (push) Failing after 35s
build / test (push) Failing after 4m53s
build / lint (push) Successful in 9m30s
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-10-06 13:45:33 +03:00
fc9be7fb46 update deps, minimise memory allocations
Some checks failed
build / test (push) Failing after 9s
build / lint (push) Failing after 8s
codeql / analyze (go) (push) Failing after 11s
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-09-20 18:50:08 +03:00
1dc55cc0c9 register std metrics once on init
Some checks failed
build / test (push) Has been cancelled
build / lint (push) Has been cancelled
codeql / analyze (go) (push) Has been cancelled
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-04-15 08:00:38 +03:00
21494e0e7a prometheus fixup panics and interface conversations
Some checks are pending
build / test (push) Waiting to run
build / lint (push) Waiting to run
codeql / analyze (go) (push) Waiting to run
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-04-15 00:49:09 +03:00
0975e8fb4d fixup panics and interface conversations
Some checks failed
build / lint (push) Waiting to run
codeql / analyze (go) (push) Waiting to run
build / test (push) Failing after 14m2s
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-04-15 00:34:55 +03:00
8dfa97b54f rewrite to use sync.Map
Some checks failed
build / test (push) Failing after 1m29s
codeql / analyze (go) (push) Failing after 1m38s
build / lint (push) Has been cancelled
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-04-15 00:27:15 +03:00
439d5cf125 fixup golang std metrics
Some checks failed
build / test (push) Failing after 1m23s
codeql / analyze (go) (push) Failing after 2m37s
build / lint (push) Successful in 9m31s
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-04-04 16:36:48 +03:00
e02f291db2 fixup uniq labels
Some checks failed
build / test (push) Has been cancelled
build / lint (push) Has been cancelled
codeql / analyze (go) (push) Has been cancelled
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-03-27 11:49:31 +03:00
c0b834b0b4 fix flout counter on clone
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2023-04-13 20:01:15 +03:00
eac6b15775 fixup
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2022-03-13 11:24:11 +03:00
85319f9bd0 use newMetric helper in all places
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2022-03-13 11:18:38 +03:00
b77f70aeb0 fix to support all metric types
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2022-03-11 01:37:53 +03:00
8ad0258828 rewrite most stuff
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2022-03-11 01:24:14 +03:00
5d50b02888 update workflows
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2022-03-07 12:13:47 +03:00
13843fbcf4 fix panic in multiple metrics with the same name and different labels
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2022-01-23 16:13:58 +03:00
599c915ed2 implement
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-11-03 17:50:29 +03:00
cf0406a859 update to latest micro
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-11-03 11:21:54 +03:00
bea52c961f use own fork
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-19 16:51:58 +03:00
f2c41beb07 wrapper/monitoring/prometheus: fix multiservice wrapper usage
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-19 16:42:30 +03:00
22acd2b61a wrapper/monitoring/prometheus: small fixes
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-19 16:42:30 +03:00
f6c0b6ca47 wrapper/monitoring/prometheus: redesign, add subscriber and client wrappers
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-19 16:42:30 +03:00
53940dda18 wrapper/monitoring/prometheus: use default registry (#532)
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-19 16:42:30 +03:00
107f961659 fix import path for v2 release (#457)
* fix import path for v2 release

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-19 16:42:30 +03:00
ddf0bfa01f put metrics in own namespace
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-19 16:42:30 +03:00
d927ad4673 wrapper: prometheus attach labels to all metrics
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-19 16:42:30 +03:00
Valentin Vesvalo
6aff955f07 add histogram metric type and more common metrics naming 2021-01-19 16:42:30 +03:00
ffb1c2f311 assign service metadata to labels
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-19 16:42:30 +03:00
Asim Aslam
39980dea2e Update prometheus.go 2021-01-19 16:42:30 +03:00
Asim Aslam
109956ca66 Update prometheus.go 2021-01-19 16:42:30 +03:00
Nikolay Bondarenko
84c2b448b9 Rename prometheus metric prefix from go_micro_x to micro_x 2021-01-19 16:42:30 +03:00
Nikolay Bondarenko
68434feb25 Add prometheus requests processed and request latencies metric gathering wrapper 2021-01-19 16:42:30 +03:00