Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot to get IIS application pools CPU utilization? #1719

Open
askrinnik opened this issue Nov 6, 2024 · 17 comments
Open

Hot to get IIS application pools CPU utilization? #1719

askrinnik opened this issue Nov 6, 2024 · 17 comments

Comments

@askrinnik
Copy link

Problem Statement

I have IIS installed on my Windows server. There are a couple of application pools with hosted applications.
How can I get CPU and memory usage of these pools?

I've read the following question but didn't understand the answer :(

Environment

  • windows_exporter Version: 0.29.2
  • Windows Server Version: Windows Server 2019 Datacenter
@jkroepke
Copy link
Member

jkroepke commented Nov 6, 2024

Enable the process collector with --collector.process.iis may helps.

@askrinnik
Copy link
Author

Enable the process collector with --collector.process.iis may helps.

Unfortunately, it didn't help. I don't see CPU and memory metrics
Also they are absent in that Windows Exporter IIS Node dashboard

@askrinnik
Copy link
Author

Guys, any ideas about the question?

@jkroepke
Copy link
Member

Did you enable the process collector?

@askrinnik
Copy link
Author

Did you enable the process collector?

Here is a list of my collectors:
--collectors.enabled="cpu,cs,iis,logical_disk,net,os,service,system,textfile"

Please correct me if I have made a mistake.
I see a lot of metrics displayed in that dashboard
But there are no CPU or memory utilization values

@askrinnik
Copy link
Author

I've just read the manual again.
Should I change my values like here:
--collectors.enabled="cpu,cs,iis,logical_disk,net,os,service,system,textile,process" --collector.process.iis=true

@jkroepke
Copy link
Member

Yeah, try it out

@askrinnik
Copy link
Author

Yeah, try it out

Here is my current service running command:

"C:\Program Files\windows_exporter\windows_exporter.exe" --collectors.enabled="cpu,cs,iis,logical_disk,net,os,service,system,mssql,process" --log.file="C:\Program Files\windows_exporter\log.txt" --config.file="C:\Program Files\windows_exporter\config.yaml"

It works fine and I see processes
When I add an argument --collector.process.iis=true, the service running fails. No errors in the log.

@jkroepke
Copy link
Member

Could you try to run that command from command line? (cmd.exe)

@askrinnik
Copy link
Author

askrinnik commented Nov 11, 2024

Could you try to run that command from command line? (cmd.exe)
That's a great idea
I see the following error in the command line window:

ERROR Failed to parse CLI args err="unexpected true"

image

But this is the recommended option here: https://github.com/prometheus-community/windows_exporter/blob/master/docs/collector.process.md

@jkroepke
Copy link
Member

Could you just try --collector.process.iis

@askrinnik
Copy link
Author

Could you just try --collector.process.iis

Yes, it has started without the issues.
But I'm not sure that I see new metrics

@jkroepke
Copy link
Member

Look for windows_process_info metric and observe, if you see metrics related to ISS/Workers (process_name)

@askrinnik
Copy link
Author

Look for windows_process_info metric and observe, if you see metrics related to ISS/Workers (process_name)

I'm not sure what I should observe
I found some metrics for w3wp_MyAppPool, but there are no CPU and memory utilization :(

@jkroepke
Copy link
Member

Example for Memory:

There should be a metric windows_process_working_set_private_bytes as well.

@jkroepke
Copy link
Member

I have no idea about IIS. I have an environment with an empty IIS, but no lack of info how I configure the environment, I'm unable to provide any details.

@askrinnik
Copy link
Author

I have no idea about IIS. I have an environment with an empty IIS, but no lack of info how I configure the environment, I'm unable to provide any details.

Anyway, thank you so much for the help.
At least I managed to understand better the process

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants