-
Notifications
You must be signed in to change notification settings - Fork 796
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 cluster label to shard metric #639
Conversation
@sysadmind Can you please have a look at this? |
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.
There are a lot of metrics that don't include the cluster name. I'm not sure that it makes sense to create a Nodes{}
object and pull that data again just to add a label. I think to accept this we would need a better way to share that data.
So, we have like 100 of ElasticSearch clusters and we are running this exporter in each node and collecting metrics in a single prometheus storage. We want |
I'm on board with this change, but I would like to remove the dependency on |
@sysadmind I have updated the code. Please review |
@SuperQ Can you please review it? |
I didn't understand this, can you explain a bit more |
Your comment/screenshot is for |
@sysadmind I have added the screenshots from correct API. |
@sysadmind @SuperQ Please review |
- Almost all the other metrics have this label, so it becomes a norm to have it on this metric as well - Only capture shards with state "STARTED" Signed-off-by: Arpit Agarwal <[email protected]>
@sysadmind @SuperQ Gentle reminder |
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.
LGTM. The remaining feedback is all around the refactoring of collectors that we are working on, so that can be addressed as part of that effort.
Signed-off-by: Joe Adams <[email protected]>
* Add changelog for v1.7.0 This includes requested security upgrades with dependencies. Signed-off-by: Joe Adams <[email protected]> * Add 816 Signed-off-by: Joe Adams <[email protected]> * Add #639 Signed-off-by: Joe Adams <[email protected]> --------- Signed-off-by: Joe Adams <[email protected]>
- Almost all the other metrics have this label, so it becomes a norm to have it on this metric as well - Only capture shards with state "STARTED" Signed-off-by: Arpit Agarwal <[email protected]>
* Add changelog for v1.7.0 This includes requested security upgrades with dependencies. Signed-off-by: Joe Adams <[email protected]> * Add 816 Signed-off-by: Joe Adams <[email protected]> * Add prometheus-community#639 Signed-off-by: Joe Adams <[email protected]> --------- Signed-off-by: Joe Adams <[email protected]>
This reverts commit b1136b2.
This reverts commit b1136b2.
Almost all the other metrics have this label, so it becomes a norm to have it on this metric as well