scale a pod based on metrics from an other pod with custom metrics?

2/6/2020

hope some can help but i try to scale a pod with custom metrics from a other one, if yes how should be a prometheus-adapter config lock like? Sadly i don't get it to work.

I tried something like this:

- seriesQuery: 'custom_metric{app="pod_where_metrics_come_from"}'
  name:
    matches: "^(.*)"
    as: "${1}_per_second"
  metricsQuery: 'sum(rate(<<.Series>>[2m])) by (<<.GroupBy>>)'

thx for all possible help :)

-- Martin Mali
hpa
kubernetes
prometheus

0 Answers