Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

HPA MaxReplicas not available?

feature-request

#1

I was trying to create a alert if the scaling ever reached the HPA’s maximum replicas value, but it doesn’t seem like NewRelic is pulling that information from the metrics daemon? It’s documented at https://github.com/kubernetes/kube-state-metrics/blob/master/Documentation/horizontalpodautoscaler-metrics.md


#2

Hey @ggreer that’s a great alerting idea. I’m curious if you curl <ksm-url>/metrics do you see any of the listed hpa metrics?


#3

@avialpando can you verify that if the kube-state-metrics version is correct, that the newrelic infra agent does pull the ReplicataSet max info? I’m having difficulties getting this exact information as well


#4

Hey @garrett.marone - The data New Relic pulls from KSM can be found here: https://docs.newrelic.com/docs/integrations/host-integrations/host-integrations-list/kubernetes-monitoring-integration#view-data


#5

Yes, I have access to all that information, but specifically I was hoping to be able to get MaxReplicas, which is made available in kube-state-metrics as kube_hpa_spec_max_replicas, and that doesn’t seem to be availabe in newrelic. Can you verify this? or let us know when that particular metric is slated to be made available?


#6

@garrett.marone
It looks like we don’t currently collect that metric. I’ll get a feature idea submitted for you internally though.