We had custom metrics working with Prometheus via use of the prometheus-adapter. We’ve since moved from Prometheus to VictoriaMetrics, but are having difficulty getting our HPA to recognize the VMRule metric. The VictoriaMetrics operator has apparently recognized our deployed PrometheusRules and converted them to VMRules – we can see them as such in Kubernetes without any code changes on our part. The metric itself is visible in vmalert, and I can query its data through Grafana when pointed at the configured VictoriaMetrics datasource. However, the HPA object never seems to pick up the value. Does anyone have a suggestion of what I may be missing, or can they point me to an example of configuring custom resource HPAs in a VictoriaMetrics environment?
1