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

Change metric agent_count into agent_state #9

Closed
wants to merge 4 commits into from
Closed

Conversation

MPV
Copy link
Contributor

@MPV MPV commented Apr 10, 2019

What:

Renamed the metric agent_count into agent_state, and added the agent's hostname as agent label.

Why:

We noticed that the agent_count gauge wasn't so helpful, and we were also missing an ability to see which specific agents (= "hostnames") that had different "build state", "agent state", and "config state".

Thus, adding hostname ("agent") as a label means the gauge is split by actual agent, and a more detailed view of each of the agents is available.

Instead of just a count of how many are in different states, now we can see which ones.

Notes:

To count the total number of agents...

...before:

agent_count

...after:

count(agent_state)

This change isn't backwards compatible for this particular metric, so we might want to bump the minor version after merging this change.

@MPV MPV requested review from igno and peterrosell April 10, 2019 15:27
@MPV MPV self-assigned this Apr 10, 2019
Copy link
Contributor

@peterrosell peterrosell left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@igno igno left a comment

Choose a reason for hiding this comment

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

🍔

@@ -7,7 +7,7 @@ import (
"strings"
"time"

"github.com/ashwanthkumar/go-gocd"
gocd "github.com/ashwanthkumar/go-gocd"
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason why this is needed?

@esselius
Copy link
Contributor

esselius commented Aug 8, 2019

@pagero/hawk Closing as it hasn't been merged for 4 months

@esselius esselius closed this Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants