Steve Zook
d83615a818
reorder functions
...
so that the two functions that list available child collectors are next
to each other - should make less likely to not miss editing one of those
when adding additional wmi classes
also removed the 'filter' from the `mssqlFilterAvailableClassCollectors`
function as it's not filtering anyting.
2018-08-03 09:48:32 -04:00
szook
fe4c61a70e
Add mssql collector ( #230 )
...
add mssql collector
2018-08-02 08:42:02 +02:00
Steve Zook
e8ffb736d0
add worker process name to w3wp processes
...
modify the `process` collector so that the IIS worker process name is
appended to the corresponding `w3wp` process.
before:
```
wmi_process_private_bytes{creating_process_id="2068",process="w3wp",process_id="12308"} 7.18204928e+08
```
after:
```
wmi_process_private_bytes{creating_process_id="2068",process="w3wp_our.website.com",process_id="12308"} 7.18204928e+08
```
reason:
We have some IIS servers hosting many .NET applications. When there is
resource contention on one of those servers, it's nice to know which IIS
application pool is the culprit. Having only the process_id to
differentiate between w3wp processes requires additional work to figure
out which is which. Also it does not allow for historial trending as
the process_id can change across restarts.
2018-07-23 07:53:50 -04:00
Steve Zook
8ea862a3da
fix iis collector panic
...
If the `dst_cache` slice is empty, the program panics when trying to access `dst_cache[0]`
added a `if len(dst_cache) > 0 {}` block around the use of that variable to prevent that panic.
2018-07-19 13:42:00 -04:00
Mark D
bb67658853
Fix IIS warning when IIS collector is NOT in use ( #212 )
...
changing IIS code to only error if used
Only tries to read registry if collector is initialized
2018-06-10 07:52:20 -07:00
Calle Pettersson
cd365c6a3b
Harmonize query call layout
2018-06-06 11:35:13 +02:00
Calle Pettersson
667d06116d
Refactor wmi query generator to use wildcard selector
2018-06-06 10:38:36 +02:00
tunaman
f3072bb4f3
Add extra HyperV VM classes ( #202 )
...
add two extra new HyperV VM classes
2018-05-17 23:46:13 -07:00
Calle Pettersson
17072bf257
Merge pull request #198 from martinlindhe/service-status
...
Add status metric for service-collector
2018-05-17 11:05:07 -07:00
Calle Pettersson
2951a9ef80
Strip carriage-returns from textfile input
2018-05-15 20:58:58 +02:00
Calle Pettersson
3141fc3ed3
Add status metric for service-collector
2018-05-12 09:49:29 +02:00
Calle Pettersson
a0333ee256
Merge pull request #195 from martinlindhe/totals-as-gauges-help-string
...
Fix wrong metric types in system collector, improve help-strings
2018-04-30 09:29:00 +02:00
Calle Pettersson
0ab6c191be
Fix wrong metric types in system collector, improve help-strings
2018-04-29 17:14:53 +02:00
Calle Pettersson
7fe8ca8554
Fix missing label on HyperVLegacyNetworkAdapter
2018-04-29 16:09:18 +02:00
Calle Pettersson
1358123482
Merge pull request #150 from iyacontrol/hyperv
...
Add hyperv collector
2018-04-18 07:45:05 +02:00
Calle Pettersson
ec79488478
Fix CPU metrics
2018-04-17 20:31:43 +02:00
Calle Pettersson
c3b227a4f2
Switch to common/log
2018-04-17 20:31:14 +02:00
Calle Pettersson
c241513d56
Fix interface->vm labelling of VID class
2018-04-17 18:25:22 +02:00
Calle Pettersson
5a538d7682
Add missing labels
2018-04-17 11:08:36 +02:00
Calle Pettersson
a0ec1e2da6
Rename hyperv subsystem
2018-04-16 20:56:05 +02:00
Calle Pettersson
353de09798
Remove/rename persec metrics
2018-04-16 20:55:47 +02:00
Calle Pettersson
be5ac7b440
Switch to prometheus/common/log for all logging
2018-04-05 07:27:26 +02:00
Calle Pettersson
63e51a554b
gofmt
2018-04-05 07:11:36 +02:00
Patrick O'Brien
cf792394f3
Bring the textfile collector over from node_exporter ( #174 )
...
Bring the textfile collector over from node_exporter
This adds a slightly modified textfile collector from the official
node_exporter project.
2018-04-03 21:37:10 +02:00
Calle Pettersson
2461407277
Use kingpin for iis and msmq
2018-03-25 10:01:56 +02:00
Calle Pettersson
aee1e4b1fd
Change to kingpin for flags
2018-03-25 10:01:56 +02:00
Martin Lindhe
b9b8cfd1ca
net: export current_bandwidth, fixes #162
2018-02-21 17:06:12 +01:00
Teriand
6b98771187
Add MSMQ collector ( #159 )
...
Add MSMQ collector
2018-02-14 12:24:52 +01:00
ghj
afa17b2a1b
rename some metrics that maybe misleading
2018-01-24 11:05:42 +08:00
ghj
3b88460eb5
add hyperv
2018-01-23 20:56:00 +08:00
Jorrit Salverda
a52df7696a
Add TCP collector ( #142 )
...
add tcp collector to get tcp connection usage stats from Win32_PerfRawData_Tcpip_TCPv4
2017-12-20 14:26:30 +01:00
Yuriy Revich
105a1c866b
fix: IIS Collector fails, when Application has more than one worker processes ( #132 )
...
* fix collecting error with multiple IIS application worker processes
2017-11-13 10:41:35 +01:00
Guillaume Boucher
809fe9becf
Add .Net Performance counters
2017-11-06 23:04:13 -05: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
Martin Lindhe
96faedf481
process,iis: fix log call
2017-08-10 03:50:21 +02:00
Martin Lindhe
3cfc11c6d2
ad: fix log call
2017-08-10 03:36:28 +02:00
Calle Pettersson
88271ddf14
Merge pull request #86 from martinlindhe/iis-wp-and-cache
...
Implement IIS worker process and server cache classes
2017-07-18 12:52:09 +02:00
Calle Pettersson
b0f1e1843b
First implementation of AD collector ( #93 )
2017-07-16 12:19:40 +02:00
Calle Pettersson
00f57c183d
Merge pull request #79 from andrewmostello/master
...
Add Win32_PerfRawData_PerfProc_Process collector
2017-07-16 10:54:23 +02:00
Calle Pettersson
dc76c4227d
Remove process index from name label, add README
2017-07-16 09:49:42 +01:00
Calle Pettersson
f4195aa435
Conditional query for wmi fields added in IIS 8
2017-07-15 13:59:33 +01:00
Calle Pettersson
e8cfeef26c
Implement IIS worker process and server cache classes
2017-06-30 20:55:45 +01:00
Calle Pettersson
22a9c96ffd
Add Vmware collector ( #81 )
2017-06-10 13:59:40 +02:00
Andrew Mostello
95b04ec0a1
Add flag to specify "where" in process WMI query
...
This flag can be used to limit the Win32_PerfRawData_PerfProc_Process
response and pull metrics for only the desired processes.
2017-05-28 22:04:31 -04:00
Andrew Mostello
2c84c5ad8a
Add Win32_PerfRawData_PerfProc_Process collector
...
Collector to scrape per process data metrics from WMI. Collector not
enabled by default.
2017-05-28 10:16:40 -04:00
Simon Willcock
9d515255a6
Add App Pool metrics to IIS module ( #70 )
...
* Initial attempt at app pool collector
* Rename and tweak
* Attempt to convert uptime to unix timestamp
* Merge app pool metrics with existing IIS modules
* Update comments to reference new class
* Add state label to CurrentApplicationPoolState metric
* Return 0 value metrics for all non-active app states
Return 1 for active state
* Remove unnecessary float cast
* Add calculation for uptime
* Convert iis uptimes to unix timestamps and alter help msg
* Rename application pool uptime to start_time
2017-04-26 15:19:33 +02:00
Attila Tóth
4895e707ef
Added metrics to OS collector
...
"time" for the Unix time
"timezone" for the name of the timezone
2017-04-03 10:50:16 +02:00
有张纸
0616dd6690
Update cpu.go ( #65 )
...
fix typo
2017-03-22 17:33:05 +01:00
有张纸
53048a42fd
Update system.go ( #66 )
...
fix typo
2017-03-22 17:32:57 +01:00