-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[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
Conversation
receiver/iisreceiver/metadata.yaml
Outdated
unit: "{state}" | ||
gauge: | ||
value_type: int | ||
enabled: true |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
receiver/iisreceiver/metadata.yaml
Outdated
unit: "{ms}" | ||
gauge: | ||
value_type: int | ||
enabled: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Please add a changelog. |
Done, I hope I did it correctly. |
|
||
### iis.application_pool.state | ||
|
||
The current state of the application pool. |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
There was a problem hiding this 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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼
done, however just a generated package test go file was updated. |
There was a problem hiding this 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.
Description
Added new metrics
Link to tracking issue
#34924
Testing
Has been tested on a local windows machine.
Documentation
Metadata documention has been updated by mdatagen.