kubernetes-sigs / prometheus-adapter

An implementation of the custom.metrics.k8s.io API using Prometheus
Apache License 2.0
1.9k stars 551 forks source link

how to aggregate query with multiple metrics ? #629

Closed omyhub closed 7 months ago

omyhub commented 8 months ago

aggregate query with multiple metrics , could u take more example for example, promsql: sum(jvm_memory_used_bytes{area="heap"}) by (pod) * 100.0 / sum(jvm_memory_max_bytes{area="heap"}) by (pod) what's the rules ? i understand metricsQuery is a go template , but seriesQuery support promsql completely ? would u give more detail of seriesQuery ?

k8s-ci-robot commented 8 months ago

This issue is currently awaiting triage.

If prometheus-adapter contributors determine this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
dashpole commented 7 months ago

i understand metricsQuery is a go template , but seriesQuery support promsql completely ?

Yes, it should support promql. This isn't the right place for questions about writing promql queries. I would recommend reaching out through official prometheus community support channels: https://prometheus.io/community/

dashpole commented 7 months ago

/close

k8s-ci-robot commented 7 months ago

@dashpole: Closing this issue.

In response to [this](https://github.com/kubernetes-sigs/prometheus-adapter/issues/629#issuecomment-1887679504): >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.