Calle Pettersson
09759a4e8c
Merge pull request #698 from ramonsmits/patch-1
...
Example - Using [defaults] with `--collectors.enabled` argument
2021-04-25 19:53:42 +02:00
Ramon Smits
576c3bf918
Example - Using [defaults] with --collectors.enabled
argument
...
Signed-off-by: Ramon Smits <ramon.smits@gmail.com>
2021-04-23 18:52:52 +02:00
Ben Reedy
19fee044bf
Merge pull request #765 from breed808/checksums
...
CI: Output artifacts in single, flat directory.
2021-04-20 19:00:35 +10:00
Ben Reedy
45a74fdb7f
CI: Output artifacts in single, flat directory.
...
Nested directories caused issues with promu checksum output, causing
user checks of the sha265sums.txt file to fail as the filenames did not
match.
Signed-off-by: Ben Reedy <breed808@breed808.com>
2021-04-19 19:38:17 +10:00
Ben Reedy
db00553ca6
Merge pull request #744 from breed808/tests
...
Add benchmark for each collector
2021-04-01 22:35:08 +10:00
Ben Reedy
a2c4bf6a2d
Add benchmark for each collector
...
Benchmarks will allow for easier identification of slow collectors.
Additionally, they increase test coverage of the collectors, with some
collectors now reaching 80-95% coverage with this change.
Collector benchmarks have been structed so that common functionality is
present in `collector/collector_test.go` as is done with non-test
functionality in `collector/collector.go`.
Test logic that is specific to individual collectors is present in the
collector test file (E.G. `collector/process_test.go` for the Process
collector).
Signed-off-by: Ben Reedy <breed808@breed808.com>
2021-04-01 22:28:54 +10:00
Calle Pettersson
7adcac8f39
Merge pull request #702 from benridley/dev_cs_collector
...
Replace WMI in cs and os collectors
2021-03-30 21:26:23 +02:00
Ben Ridley
863b7d8ab4
Merge branch 'dev_cs_collector' of https://github.com/benridley/windows_exporter into dev_cs_collector
2021-03-29 10:14:26 -07:00
Ben Ridley
33c6b2c6a5
Address GitHub feedback
...
- Defer registry close calls
- Ensure size parameter in GetComputerName is properly specified
- Clean up some comments to ensure correctness
Signed-off-by: Ben Ridley <benridley29@gmail.com>
2021-03-29 10:13:36 -07:00
Calle Pettersson
6dee2422e1
Merge pull request #753 from prometheus-community/fix-ci
...
Update CI to install tools with go install rather than go get
2021-03-28 10:41:25 +02:00
Calle Pettersson
5d224b43ca
Update CI to install tools with go install rather than go get
...
Signed-off-by: Calle Pettersson <calle@cape.nu>
2021-03-27 15:30:50 +01:00
Calle Pettersson
3f2a143104
Merge pull request #748 from majerus1223/remote_interactive
...
Fix typo on remote_interactive
2021-03-19 11:34:25 +01:00
Ben Ridley
ee3848141c
Simplify struct usage and comments
...
Signed-off-by: Ben Ridley <benridley29@gmail.com>
2021-03-18 16:18:47 -07:00
Ben Ridley
df2a7a9ec0
Remove temporary uintptr values, as the garbage collector can move addresses from under them.
...
Signed-off-by: Ben Ridley <benridley29@gmail.com>
2021-03-18 16:18:47 -07:00
Ben Ridley
05f0f6f688
Add idiomatic wrappers to be exposed publically, and hide low-level
...
WinAPI operations
Signed-off-by: Ben Ridley <benridley29@gmail.com>
2021-03-18 16:18:47 -07:00
Ben Ridley
d947d0f6db
Refactor remaining sysinfoapi calls into header package
...
Signed-off-by: Ben Ridley <benridley29@gmail.com>
2021-03-18 16:18:47 -07:00
Ben Ridley
d063bc0842
Add correct scrape context to OS benchmark
...
Signed-off-by: Ben Ridley <benridley29@gmail.com>
2021-03-18 16:18:47 -07:00
retryW
dd473c4807
Fixed paging free bytes
...
moved
Signed-off-by: Ben Ridley <benridley29@gmail.com>
2021-03-18 16:18:47 -07:00
retryW
7bd58abd27
Converted PagingFreeBytes to use perflib
...
Signed-off-by: Ben Ridley <benridley29@gmail.com>
2021-03-18 16:18:47 -07:00
retryW
6f941044c7
Change Sprintf interpolation to use explicit types
...
Signed-off-by: Ben Ridley <benridley29@gmail.com>
2021-03-18 16:18:47 -07:00
retryW
3da11645cf
added os_test.go and removed wmi for testing
...
Signed-off-by: Ben Ridley <benridley29@gmail.com>
2021-03-18 16:18:47 -07:00
retryW
048bff919e
Converted most metrics to non-wmi
...
Signed-off-by: Ben Ridley <benridley29@gmail.com>
2021-03-18 16:18:47 -07:00
retryW
f76334213d
Convert os time and timezone from WMI to native go
...
Signed-off-by: Ben Ridley <benridley29@gmail.com>
2021-03-18 16:18:47 -07:00
Ben Ridley
71054ac429
Replace the CS collector with native WinAPI calls to sysinfoapi
...
Signed-off-by: Ben Ridley <benridley29@gmail.com>
2021-03-18 16:18:47 -07:00
Ben Ridley
248b7214e3
Move netapi free back to a defer statement
...
Signed-off-by: Ben Ridley <benridley29@gmail.com>
2021-03-19 10:13:04 +11:00
majerus
094558b1f1
Fix typo
...
Signed-off-by: majerus <james_majerus@msn.com>
2021-03-16 09:12:56 -05:00
Ben Reedy
18495abb69
Merge pull request #736 from basroovers/master
...
Typo in tcp doc
2021-03-07 11:04:18 +10:00
Calle Pettersson
f316d81d50
Merge pull request #735 from roidelapluie/web-cfg-file
...
Update web config file flag to match upstream
2021-02-24 15:15:07 +01:00
Bas Roovers
cc709ac380
Update collector.tcp.md
...
Changed windows_tcp_connections_established to gauge in tcp doc
Signed-off-by: Bas Roovers <basroovers@icloud.com>
2021-02-24 14:39:07 +01:00
Julien Pivotto
2262b88fac
Update web config file flag to match upstream
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2021-02-24 00:23:38 +01:00
Ben Reedy
795cc5ca85
Merge pull request #730 from breed808/experimental_warnings
...
Move experimental warnings from init()
2021-02-22 18:53:05 +10:00
Ben Reedy
ce0513f69d
Move experimental warnings from init()
...
init() causes warnings to be emitted despite collectors not being enabled.
Signed-off-by: Ben Reedy <breed808@breed808.com>
2021-02-20 09:03:42 +10:00
Ben Reedy
ee146b3710
Merge pull request #726 from higels/cpu_info_collector
...
Add a cpu_info collector
2021-02-20 08:55:06 +10:00
Steffen Higel
a9752ebc1e
adding a "data source" field to the documentation, to make it clear that this data comes from WMI
...
Signed-off-by: Steffen Higel <higels@valvesoftware.com>
2021-02-19 08:30:12 -08:00
Calle Pettersson
d54aa033b1
Merge pull request #723 from breed808/cache_collector
...
Cache collector
2021-02-19 09:44:24 +01:00
Ben Reedy
3682c1b9af
Rewrite cache collector to use perflib
...
Signed-off-by: Ben Reedy <breed808@breed808.com>
2021-02-19 18:29:37 +10:00
Ben Reedy
5af2a781cb
Merge pull request #693 from SuperQ/https
...
Add HTTPS configuration
2021-02-19 18:20:06 +10:00
Steffen Higel
7086e0f627
Add a cpu_info collector
...
The cpu_info collector exposes a single metric per socket with some
information on installed CPUs, somewhat like the node_cpu_info metric
Signed-off-by: Steffen Higel <higels@valvesoftware.com>
2021-02-15 17:13:58 -08:00
Bill Bagdon
682378e170
Add docs
...
Signed-off-by: Ben Reedy <breed808@breed808.com>
2021-02-12 18:13:04 +10:00
Bagdon, Bill
c1fff498c6
Create cache collector
...
Signed-off-by: Ben Reedy <breed808@breed808.com>
2021-02-12 18:13:01 +10:00
Ben Reedy
648b6e0ab5
Merge pull request #719 from breed808/dfsr_unique_metric_names
...
Ensure dfsr collector metric names are unique
2021-02-09 21:36:49 +10:00
Ben Reedy
e9abe4d5f5
Ensure dfsr collector metric names are unique
...
Signed-off-by: Ben Reedy <breed808@breed808.com>
2021-02-08 09:38:29 +10:00
Ben Reedy
0af38ddbcf
Merge pull request #716 from jsturtevant/add-containerd-support
...
Set container collector prefix based on owner property
2021-02-05 07:39:51 +10:00
James Sturtevant
b615301efc
set prefix based on owner property
...
Signed-off-by: James Sturtevant <jstur@microsoft.com>
2021-02-04 09:41:59 -08:00
Ben Reedy
25eb64bb3d
Merge pull request #717 from jsturtevant/patch-1
...
Use correct metric name for windows_net_packets_outbound_discarded
2021-02-03 07:12:13 +10:00
James Sturtevant
19fbd57f60
Use correct metric name
...
Signed-off-by: James Sturtevant <jstur@microsoft.com>
2021-02-02 11:47:20 -08:00
Ben Reedy
b9b60f1ea0
Merge pull request #710 from breed808/dfsr_descriptions
...
Add missing dfsr metric descriptions
2021-02-02 13:45:37 +10:00
Calle Pettersson
eaa003f5af
Add gokit adapter to make https toolkit work
...
Signed-off-by: Calle Pettersson <carlpett@users.noreply.github.com>
2021-01-30 11:53:51 +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
Calle Pettersson
054cf5c5f5
Include log from prometheus/common/log
...
Signed-off-by: Calle Pettersson <carlpett@users.noreply.github.com>
2021-01-30 11:53:51 +01:00