-
Notifications
You must be signed in to change notification settings - Fork 190
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
Guide for how to use keda to auto scaling #314
Comments
Are you using the Prometheus Operator? Then you need the service monitor. I'm not sure if we need a complete guide, or just reference Prometheus docs. |
Thanks, @nineinchnick! I believe the ServiceMonitor approach and direct scraping are two different ways to write data to Prometheus, so we might only need one of them (?) Please correct me if I am wrong. Thanks! jmx:
enabled: true
exporter:
enabled: true
serviceMonitor:
enabled: false or jmx:
enabled: true
exporter:
enabled: false
serviceMonitor:
enabled: true |
You haven't answered if you're using Prometheus Operator, so I can't recommend you any specific setup. |
Oh I am, here is my Prometheus deployment code with Prometheus Operator enabled: https://github.com/hongbo-miao/hongbomiao.com/blob/adae8e52f54670f76dd9499be080f328fd218592/kubernetes/argo-cd/applications/production-hm/prometheus/argo-cd-manifests/hm-prometheus-application.yaml#L31-L32 |
ServiceMonitor is used by the Operator to configure Prometheus to scrape metrics from Trino. You need the JMX exporter, so Prometheus can scrape metrics. Trino also exposes JMX metrics as OpenMetrics, so you might not need the exporter, but it might require some extra configuration: https://trino.io/docs/current/admin/openmetrics.html |
I've implemented workers autoscaling based in this https://medium.com/bestsecret-tech/maximize-performance-the-bestsecret-to-scaling-trino-clusters-with-keda-c209efe4a081 |
It would be great to provide a guide for how to use Keda to auto scaling.
Currently I have Keda in my Kubernetes cluster. Here is my Trino values.yaml file:
If I have
and let Prometheus scrape it and write to Mimir.
Do I still need?
Sorry I am quite lost. 😞
The text was updated successfully, but these errors were encountered: