Mario Trangoni
e4a43c539b
codespell: Fix word spelling issues
...
See,
```
$ codespell --skip=".git,./vendor" --ignore-words-list=calle
./exporter.go:262: overriden ==> overridden
./collector/dfsr.go:132: receieved ==> received
./collector/dns.go:140: reponses ==> responses
./collector/exchange.go:238: occational ==> occasional
./collector/mssql.go:1961: shoud ==> should
./collector/process.go:137: sharable ==> shareable
./collector/remote_fx.go:64: seccond ==> second
./docs/collector.dfsr.md:47: fils ==> fills, files, file
./docs/collector.exchange.md:39: lengt ==> length
./docs/collector.fsrmquota.md:3: Ressource ==> Resource
./docs/collector.fsrmquota.md:51: Ressource ==> Resource
./docs/collector.os.md:20: sotred ==> sorted, stored
./docs/collector.process.md:56: sharable ==> shareable
./docs/collector.smtp.md:27: mailformed ==> malformed
```
Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
2021-12-18 19:19:06 +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
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
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
4f89133893
Convert the process collector to use perflib
2020-03-24 22:46:24 +01: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
a171401f57
Lint-fix: errcheck. Partial fix to #261
2019-01-23 10:00:52 +01:00
Calle Pettersson
f2462b26c8
Lint-fix: Package comments
2019-01-23 09:56:24 +01:00
vlamug
ad29ac0792
There was added the checking and logging of query worker processes
2018-12-21 15:16:08 +04:00
Dave Henderson
5d4cafc0a1
Adding windows build constraints
...
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2018-11-29 19:51:12 -05: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
Calle Pettersson
667d06116d
Refactor wmi query generator to use wildcard selector
2018-06-06 10:38:36 +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
Martin Lindhe
96faedf481
process,iis: fix log call
2017-08-10 03:50:21 +02:00
Calle Pettersson
dc76c4227d
Remove process index from name label, add README
2017-07-16 09:49:42 +01: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