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

Add Agent's Computer Name to metric #115

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

cbat98
Copy link

@cbat98 cbat98 commented Oct 9, 2024

This PR augments the azure_devops_agentpool_agent_info metric by adding the agent's computer name as a label.
This can be useful for grouping agents by the server that they're running on for use in Grafana dashboards. Whilst I personally prefer the term "Server Name", "Computer Name" was chosen as it more closely matches the capability that is exposed by the Agent Software (Agent.ComputerName).


image

@cbat98 cbat98 marked this pull request as draft October 10, 2024 13:55
Using `Demands` in the query string breaks support for
includeAssignedRequest which is used for working out which agents are
currently doing work
Copy link

sonarcloud bot commented Oct 10, 2024

@cbat98 cbat98 marked this pull request as ready for review October 10, 2024 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant