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

Azure gather metrics for vmss #480

Open
NissesSenap opened this issue Dec 14, 2021 · 3 comments
Open

Azure gather metrics for vmss #480

NissesSenap opened this issue Dec 14, 2021 · 3 comments

Comments

@NissesSenap
Copy link
Contributor

We have seen that even if a node is deleted from kubernetes they some time linger inside vmss.
Add metrics gathering from azure vmss metrics endpoint and expose them in prometheus.

Add the needed config to: https://github.com/XenitAB/terraform-modules/blob/main/modules/kubernetes/azure-metrics/charts/azure-metrics-exporter/templates/podmonitor.yaml

@NissesSenap
Copy link
Contributor Author

NissesSenap commented Dec 14, 2021

@CalleB3 might this be something for you?

@CalleB3
Copy link
Member

CalleB3 commented Dec 16, 2021

Unfortunately at the current time there isnt any supported metrics in Azure for this.

Under Microsoft.Compute/virtualmachineScaleSets at the link below, there isnt anything related to vmss and its instances.

https://docs.microsoft.com/en-us/azure/azure-monitor/essentials/metrics-supported#microsoftcomputevirtualmachinescalesets

@CalleB3 CalleB3 closed this as completed Dec 16, 2021
@CalleB3 CalleB3 reopened this Dec 16, 2021
@NissesSenap
Copy link
Contributor Author

It looks like there is: VmAvailabilityMetric but it's in preview, we could probably open a support ticket and ask to be added in this preview.

Another possible solution is that we actually don't need a specific metric we just need to know the count of nodes responding with metrics. Then we can compare this data with active k8s nodes in the cluster.
So it we gather any metric from vmss that is related to k8s we should be okay.

Do you agree @phillebaba?

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

No branches or pull requests

2 participants