Ben Reedy
8de5ef0353
fix: Fix spelling error in service collector
...
Error was failing CI checks.
Signed-off-by: Ben Reedy <breed808@breed808.com>
2023-11-11 11:46:37 +10:00
Jan-Otto Kröpke
6890f391d4
fix lint
...
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
2023-07-09 22:42:00 +02:00
Jan-Otto Kröpke
8509bc69a6
switch to go-kit logger
...
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
2023-07-09 22:37:27 +02:00
Jan-Otto Kröpke
da6898afc4
Remove fluent-style kingpin
...
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
2023-04-17 13:22:36 +02:00
Ben Reedy
04257a1b25
chore: Ensure collector build funcs are private
...
Collector builder functions are only used internally in the `collector`
package, and shouldn't needlessly be exposed as part of the package API
to downstream clients.
Signed-off-by: Ben Reedy <breed808@breed808.com>
2023-04-01 17:54:41 +10:00
Ben Reedy
9214a87d0d
feat: Remove init functions from collectors
...
Behaviour of init functions has been centralised in `collector/init.go`,
and can be called during exporter startup. This allows the exporter to
control the timing of collector initialisation, rather than relying on
the import & `init()` method.
This should reduce unexpected behaviour arising from the use of
`init()`, such as #551 .
Signed-off-by: Ben Reedy <breed808@breed808.com>
2023-04-01 17:54:40 +10:00
Ben Reedy
416ccf1228
chore(deps): bump github.com/alecthomas/kingpin
...
Bumps [github.com/alecthomas/kingpin](https://github.com/alecthomas/kingpin ) from
v2.2.6 to v2.3.2.
This also changes the upstream package name from
gopkg.in/alecthomas/kingpin.v2 to github.com/alecthomas/kingpin/v2 which
is required by the upstream exporter-toolkit package.
Signed-off-by: Ben Reedy <breed808@breed808.com>
2023-03-13 09:36:23 +10:00
Ben Reedy
7886cf9e37
chore(deps): Update wmi to v1.2.2
...
This includes a move from github.com/StackExchange/wmi to
github.com/yusufpapurcu/wmi, as the StackExchange repository has been
archived.
Signed-off-by: Ben Reedy <breed808@breed808.com>
2023-03-12 17:34:34 +10:00
alvarocabanas
c9e28c4c00
Fix Service Access is denied in collector useApi
...
Signed-off-by: Alvaro Cabanas <albanas@gmail.com>
Signed-off-by: alvarocabanas <acabanas@newrelic.com>
2022-07-29 10:53:29 +02:00
Mario Trangoni
919f90a571
golangci-lint: Acknowledge all remaining checks and update golanci-lint to v1.43.0
...
Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
2021-12-24 11:19:05 +01:00
Mario Trangoni
b98a956d51
gofmt: Fix File is not gofmt
-ed with -s
for go1.17
...
Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
2021-12-18 19:01:29 +01:00
Alvaro Cabanas
f4f5aaf146
Service Api collection close servicehandler to avoid memory leak
...
Signed-off-by: Alvaro Cabanas <acabanas@newrelic.com>
2021-09-23 17:45:31 +02:00
Carlos Castro
67ca5e5ef2
Update service.go
...
Signed-off-by: Carlos Castro <ccastro@newrelic.com>
2021-08-25 17:19:41 +01:00
Carlos Castro
384183120f
Update service.go
...
Signed-off-by: Carlos Castro <ccastro@newrelic.com>
2021-08-25 17:19:41 +01:00
Carlos Castro
a9ac2d4672
Collect services using windows api
...
Signed-off-by: Carlos Castro <ccastro@newrelic.com>
2021-08-25 17:19:41 +01:00
Calle Pettersson
c5a545540d
Take over prometheus/common/log into local log package
...
Signed-off-by: Calle Pettersson <carlpett@users.noreply.github.com>
2021-01-30 11:53:51 +01:00
paologallinaharbur
dd6bfbe963
fix: changed label name, added documentation
...
Signed-off-by: paologallinaharbur <paologallina1992@gmail.com>
2020-06-01 16:10:48 +02:00
paologallinaharbur
a4f815b5fd
feat (service): added support for service StartName
...
Signed-off-by: paologallinaharbur <paologallina1992@gmail.com>
2020-06-01 16:10:48 +02:00
Guillermo Sanchez Gavier
99ed969bf7
add wmi_service_info metric with display_name and pid labels ( #516 )
...
* add wmi_service_info metric
2020-05-15 13:13:25 +02:00
Calle Pettersson
21a02c4fbe
Only query the perflib objects we need
2020-02-29 10:40:53 +01:00
Calle Pettersson
33879449a2
Refactor cpu collector to use perflib instead of WMI.
2019-05-25 13:48:40 +02:00
Calle Pettersson
f2462b26c8
Lint-fix: Package comments
2019-01-23 09:56:24 +01:00
Dave Henderson
5d4cafc0a1
Adding windows build constraints
...
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2018-11-29 19:51:12 -05:00
Calle Pettersson
667d06116d
Refactor wmi query generator to use wildcard selector
2018-06-06 10:38:36 +02:00
Calle Pettersson
3141fc3ed3
Add status metric for service-collector
2018-05-12 09:49:29 +02:00
Calle Pettersson
be5ac7b440
Switch to prometheus/common/log for all logging
2018-04-05 07:27:26 +02:00
Calle Pettersson
aee1e4b1fd
Change to kingpin for flags
2018-03-25 10:01:56 +02:00
Calle Pettersson
2f7a372429
Fix "no where-clause" warning in service collector
2017-08-11 17:38:06 +02:00
vbeausoleil
44c39405c7
Added flag to filter services (like the one for processes). Added example for said flag in README.md ( #109 )
2017-08-11 00:31:39 +02:00
Calle Pettersson
f5365c96f6
Always expose all possible service states/start modes
2017-03-04 10:38:40 +01:00
Calle Pettersson
91374a75f2
Add Win32_Service collector
2017-03-03 14:51:24 +01:00