-
Notifications
You must be signed in to change notification settings - Fork 267
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 metrics to show the number of nodes being tracked #785
Comments
Hi @stevehipwell, do you mean that we only need this feature for SQS mode ? |
@phuhung273 yes this only makes sense for SQS mode. |
My 1st idea is counting instances based on tag. But there is only 1 mandatory tag
Came up with 2nd idea:
May I know your thought @stevehipwell |
@phuhung273 the managed tag passed into NTH should be exclusive to the K8s cluster as NTH will attempt to manage all EC2 instances with that tag. How about the following metrics which would allow us to detect misconfigurations.
|
Amazing @stevehipwell. Is this pseudo code good enough ? for {
nth_managed_nodes = (kubectl get node --filter tag=NTH)
nth_managed_instances = (aws ec2 describe-instances --filter tag=NTH)
sleep(5s)
} |
Describe the feature
I'd like to know the number of nodes that a NTH instance is currently managing and have it exported as a metric.
Is the feature request related to a problem?
After the tagging changes we had a defect where the tags weren't being set on the instances causing our nodes to no longer be managed by NTH; this metric would have meant it was easy to see that it wasn't configured correctly.
Describe alternatives you've considered
n/a
The text was updated successfully, but these errors were encountered: