Skip to content

[receiver/iis] fixed issue #34924 - monitor application pool uptime #38183

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

Merged
merged 16 commits into from
Feb 27, 2025

Conversation

syron
Copy link
Contributor

@syron syron commented Feb 25, 2025

Description

Added new metrics

  • application pool state: Each application pool's state
  • application pool uptime: The number of milliseconds an application pool has been up.

Link to tracking issue

#34924

Testing

Has been tested on a local windows machine.

Documentation

Metadata documention has been updated by mdatagen.

@syron syron requested a review from a team as a code owner February 25, 2025 15:47
@syron syron requested a review from dehaansa February 25, 2025 15:47
Copy link

linux-foundation-easycla bot commented Feb 25, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

unit: "{state}"
gauge:
value_type: int
enabled: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please set enabled: false for new metrics, and enable them in a second PR as a breaking change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. Should a new PR with the breaking change be created after this is complete (if it gets completed) or can it be created already?

unit: "{ms}"
gauge:
value_type: int
enabled: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@atoulme
Copy link
Contributor

atoulme commented Feb 25, 2025

Please add a changelog.

@syron
Copy link
Contributor Author

syron commented Feb 25, 2025

Please add a changelog.

Done, I hope I did it correctly.


### iis.application_pool.state

The current state of the application pool.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The state value should document the values per https://learn.microsoft.com/en-us/dotnet/api/microsoft.web.administration.objectstate?view=iis-dotnet#fields or at least link to it. Example:

Current phase of the pod (1 - Pending, 2 - Running, 3 - Succeeded, 4 - Failed, 5 - Unknown)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I have updated the metadata file and re-run mdatagen.

Copy link
Contributor

@pjanotti pjanotti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a make generate and it should be good to go!

@@ -135,3 +135,15 @@ metrics:
gauge:
value_type: int
enabled: true
iis.application_pool.state:
description: The current state of the application pool. (0 - Starting, 1 - Started, 2 - Stopping, 3 - Stopped, 4 - Unknown)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@syron
Copy link
Contributor Author

syron commented Feb 26, 2025

Just a make generate and it should be good to go!

done, however just a generated package test go file was updated.

Copy link
Contributor

@atoulme atoulme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pjanotti reviewed, and lgtm - approved.

@pjanotti pjanotti added the ready to merge Code review completed; ready to merge by maintainers label Feb 27, 2025
@songy23 songy23 merged commit 7ec4927 into open-telemetry:main Feb 27, 2025
167 checks passed
@github-actions github-actions bot added this to the next release milestone Feb 27, 2025
@syron syron deleted the iisreceiver branch March 3, 2025 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers receiver/iis
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants