JDA88
bbefd8ac97
Document expected delays in the size metrics
...
Signed-off-by: Ben Reedy <breed808@breed808.com >
2021-10-01 07:58:04 +10:00
Ben Reedy
5b92e1bd3d
Merge pull request #841 from breed808/thermal_empty
...
Thermalzone: return error on empty result
2021-10-01 05:45:09 +10:00
Dave Owen
82f17fd607
Collect IIS metrics using Perflib ( #832 )
...
Rewrite IIS collector to use Perflib
Signed-off-by: David Owen <dowen@meddbase.com >
2021-09-25 17:00:39 +02:00
Ben Reedy
5d29ff6497
Thermalzone: return error on empty result
...
Signed-off-by: Ben Reedy <breed808@breed808.com >
2021-09-25 15:35:45 +10: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
Benjamin Blattberg
1b96bb6d08
Add MSSQL Wait Statistics ( #793 )
...
Signed-off-by: benjaminjb <benjamin.blattberg@gmail.com >
2021-06-29 21:32:08 +02:00
Ben Reedy
cc45eeb90b
Merge pull request #809 from breed808/process_working_set_private
...
Add missing Process Collector metrics
2021-06-25 08:36:43 +10:00
Ben Reedy
4b2cd0a024
Merge pull request #759 from breed808/textfile
...
Fix textfile crashes with duplicate metrics
2021-06-25 08:36:21 +10:00
Ben Reedy
ad447a6b08
Add unit suffix to process working_set metric
...
Signed-off-by: Ben Reedy <breed808@breed808.com >
2021-06-19 09:02:30 +10:00
Ben Reedy
e4d7604193
Move process metric documentation to markdown file
...
Signed-off-by: Ben Reedy <breed808@breed808.com >
2021-06-19 09:02:28 +10:00
Ben Reedy
757f88be04
Add missing process counters
...
Working Set Private and Working Set Peak were being collected, but not
exposed by the exporter.
Signed-off-by: Ben Reedy <breed808@breed808.com >
2021-06-19 09:02:26 +10:00
Calle Pettersson
cff484b5e1
Merge pull request #804 from max-len/bandwidth-bytes
...
Export CurrentBandwidth as bytes
2021-06-16 20:16:45 +02:00
Max Lendrich
0f5a232142
Fix typo
...
Signed-off-by: Max Lendrich <maximilian.lendrich@sap.com >
2021-06-15 12:38:23 +02:00
Max Lendrich
bbab591570
Export CurrentBandwidth as bytes
...
From https://prometheus.io/docs/practices/naming/ :
To avoid confusion combining different metrics, always use bytes, even
where bits appear more common.
Fixes #800
Signed-off-by: Max Lendrich <maximilian.lendrich@sap.com >
2021-06-14 17:33:27 +02:00
Ben Reedy
5a57da53be
Replace deprecated log lib in remaining collectors
...
Some collectors were missed when migrating to the local
github.com/prometheus-community/windows_exporter/log library.
Signed-off-by: Ben Reedy <breed808@breed808.com >
2021-06-12 11:57:40 +10:00
Ben Reedy
5072879dca
Check duplicates across entire textfile set
...
Check all textfile metrics will be checked for duplicates. If duplicates
are detected, drop all metrics and log error.
Signed-off-by: Ben Reedy <breed808@breed808.com >
2021-05-17 16:54:28 +10:00
Ben Reedy
0fb7eec670
Remove hard-coded "Computer Queues" filter
...
msmq collector would only collect from a hard-coded "Computer Queues"
queue.
Removal of filter allows other queues to be queried with
the collector.msmq.msmq-where flag.
Signed-off-by: Ben Reedy <breed808@breed808.com >
2021-05-16 14:53:54 +10:00
Ben Reedy
4293497b29
Fix textfile crashes with duplicate metrics
...
Signed-off-by: Ben Reedy <breed808@breed808.com >
2021-05-12 20:57:17 +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
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
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 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
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
Bagdon, Bill
c1fff498c6
Create cache collector
...
Signed-off-by: Ben Reedy <breed808@breed808.com >
2021-02-12 18:13:01 +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
b9b60f1ea0
Merge pull request #710 from breed808/dfsr_descriptions
...
Add missing dfsr metric descriptions
2021-02-02 13:45:37 +10: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
Ben Reedy
e141e531ed
Remove unused dfsr meta metrics and function
...
Signed-off-by: Ben Reedy <breed808@breed808.com >
2021-01-30 18:56:45 +10:00
Ben Reedy
b44d855fe0
Add missing dfsr metric descriptions
...
Signed-off-by: Ben Reedy <breed808@breed808.com >
2021-01-30 17:10:37 +10:00
Ben Reedy
556138189a
Remove "total" suffix from dns_memory_used_bytes
...
Metric is a gauge and therefore should not have the "total" suffix.
2021-01-27 07:24:23 +10:00
Ben Reedy
8407f4aeb8
Document version requirement for time collector
...
Windows Server 2016 or newer is required for the collector, as the
perflib counters were not exposed in previous versions.
Signed-off-by: Ben Reedy <breed808@breed808.com >
2021-01-17 10:57:51 +10:00
Ben Reedy
59ba77b87f
Rename mssql instance label to mssql_instance
...
Instance label is conflicting with default Prometheus "instance" label
which is added when scraping targets.
Signed-off-by: Ben Reedy <breed808@breed808.com >
2020-12-31 09:36:36 +10:00