re
1919ef1b31
repo fix
2022-12-13 11:48:40 +03:00
copy rogers
b785d0c828
Fix go_collector_latest_test Fail on go1.19 ( #1136 )
...
Signed-off-by: rogerogers <rogers@rogerogers.com>
Signed-off-by: rogerogers <rogers@rogerogers.com>
2022-11-07 20:17:41 +01:00
Bartlomiej Plotka
5b7e8b2e67
collectors.GoCollector: Added rule support for granular metric configuration. ( #1102 )
...
* goCollector: Added rule support for granular metric configuration.
Fixes: https://github.com/prometheus/client_golang/issues/1089
Signed-off-by: bwplotka <bwplotka@gmail.com>
* Added compatibility mode with old options. (#1107 )
* Added compatibility mode with old options.
Signed-off-by: bwplotka <bwplotka@gmail.com>
* Copyright header.
Signed-off-by: bwplotka <bwplotka@gmail.com>
* Remove bucket option for now. (#1108 )
Signed-off-by: bwplotka <bwplotka@gmail.com>
* collectors/GoCollector: Add tests and examples (#1109 )
* Add tests and examples
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
* Add docs for the presets
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
Co-authored-by: Kemal Akkoyun <kakkoyun@users.noreply.github.com>
2022-08-05 19:37:46 +02:00
Soroosh Azary Marhabi
2cfd1eb960
Enable same linters as the Prometheus repo itself ( #1056 )
...
* Add gofumpt to github workflow & fix all files for it
Signed-off-by: sazary <soroosh@azary.ir>
* Add goimports to golangci & fix it's issues
Signed-off-by: sazary <soroosh@azary.ir>
* Add revive to golangci & fix it's issues
Signed-off-by: sazary <soroosh@azary.ir>
* Add errcheck & misspell to golangci and fix their issues
Signed-off-by: sazary <soroosh@azary.ir>
* Add govet & gosimple to golangci and fix their issues
Signed-off-by: sazary <soroosh@azary.ir>
* Enable all default linters of golangci
Signed-off-by: sazary <soroosh@azary.ir>
2022-06-17 09:04:06 +02:00
Kemal Akkoyun
35c82f2c7e
Remove -Inf buckets from go collector histograms ( #1049 )
...
* Remove -Inf buckets from go collector histograms
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
* Update prometheus/collectors/go_collector_latest_test.go
Co-authored-by: Bartlomiej Plotka <bwplotka@gmail.com>
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
* Simplify
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
Co-authored-by: Bartlomiej Plotka <bwplotka@gmail.com>
2022-05-13 10:04:45 +02:00
Kemal Akkoyun
f25114699a
prometheus: Fix convention violating names for generated collector metrics ( #1048 )
...
* Fix convention violating names for generated collector metrics
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
* Add new Go collector example
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
2022-05-09 10:33:45 +02:00
Bartlomiej Plotka
11ee9add27
gocollector: Reverted client_golang v1.12 addition of runtime/metrics metrics by default. ( #1033 )
...
Fixes https://github.com/prometheus/client_golang/issues/967
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
2022-04-13 20:43:29 +02:00
Manuel Rüger
46d3dd4e6c
Bump minimum required Go version to 1.16 ( #1032 )
...
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-04-13 16:21:42 +01:00
Bartlomiej Plotka
24172847e3
gocollector: Added options to Go Collector for changing the ( #1031 )
...
* Renamed files.
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
* gocollector: Added options to Go Collector for diffetent collections.
Fixes https://github.com/prometheus/client_golang/issues/983
Also:
* fixed TestMemStatsEquivalence, it was noop before (:
* Removed gc_cpu_fraction metric completely, since it's not working completely for Go1.17+
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
2022-04-13 09:55:22 +01:00
Mitsuo Heijo
8dfa334295
Remove workaround for pre go1.15 ( #1010 )
...
Signed-off-by: Mitsuo Heijo <mitsuo.heijo@gmail.com>
2022-03-27 19:11:56 +01:00
Manuel Rüger
8535b62021
Add new go:build lines for go 1.17
...
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2021-12-17 23:38:35 +01:00
beorn7
81a9556c8b
Make dbStatsCollector more DRY
...
Signed-off-by: beorn7 <beorn@grafana.com>
2021-05-20 22:31:53 +02:00
Mitsuo Heijo
a66da1df4a
Add collector for database/sql#DBStats ( #866 )
...
* Add collector for database/sql#DBStats
Signed-off-by: Mitsuo Heijo <mitsuo.heijo@gmail.com>
2021-05-20 22:22:17 +02:00
Mitsuo Heijo
e07445a773
Add new collectors package
...
Signed-off-by: Mitsuo Heijo <mitsuo.heijo@gmail.com>
2021-05-08 10:43:31 +09:00