Open pingping95 opened 1 year ago
I am looking forward to being able to use it with Mimir too.
Hi,
this works for me:
krr simple --prometheus-url "http://localhost:8080/prometheus"
This is a Mimir deployment using the mimir-distributed-4.4.1
helm chart, :8080
is a port forward to its Nginx service (or rather a pod behind it), the /prometheus route should hit Mimir's query frontend. So any URL that hits this service should work, I just happened to use port forwarding. Note that it is a bit sensitive to trailing slashes, eg. I noticed http://localhost:8080/prometheus/
does not work for me. Good luck.
Kind regards, Frank.
Hi @FrankFoerster24, perfect, it works like a charm, thank you for sharing with us.
Thanks for the update.
If anyone would like to contribute a PR to fix the docs (or autodiscovery, or that issue with trailing slashes) that would be more than welcome! And we'll send you a cool Robusta t-shirt in appreciation :)
As a starting point, I hacked something in #168 which works for my installation. Some things are not at the right place yet, though.
I can add to aforementioned example that current version of krr (v1.6.0) works without issues with self-hosted Mimir.
Only headers for tenant-id should be provided too (were added in https://github.com/robusta-dev/krr/issues/84), example
$ krr simple --prometheus-url https://mimir.some.domain/prometheus --prometheus-headers 'X-Scope-OrgID: some-tenant-id'
@pavangudiwada could you assist with updating the docs re. @FrankFoerster24's and @nantiferov's instructions?
Hi all.
I think cluster-label config need to add for those who have lots cluster label values for multi cluster.
krr simple --prometheus-url https://mimir.xxxxx.xxx/prometheus --prometheus-headers 'X-Scope-OrgID: anonymous' --prometheus-label cluster -l cluster-label-value
1. run kubectx
kubectx cluster-to-watch
2. run krr
krr simple --prometheus-url https://mimir.xxxxx.xxx/prometheus --prometheus-headers 'X-Scope-OrgID: anonymous' --prometheus-label cluster -l cluster-to-watch
To clarify, you have multiple clusters under the same Mimir tenant ID, right?
@aantn yes.
I have multiple clusters under same mimir tenant ID.
So i changed my cluster context and then run krr command.
it works for my case.
Thanks, we'll add something to the docs.
I also just ran into this; for clarification for others this was my scenario:
--prometheus-label cluster -l cluster-label-value
AND ensure that your KUBECONFIG
in your shell points to that spoke cluster and not Mimir. If you don't do this, you will just end up running krr against the cluster where Mimir is located and not your actual intended target
Is your feature request related to a problem? Please describe.
krr simple -p https://mimir.xxxxx.xxx --prometheus-label cluster -l my-cluster
I tried above command and does not success.
Describe the solution you'd like Hope to support Mimir
If i did wrong command, please let me know the exact command.