You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your issue. I think we will include thanos as one of the features for the near future. I will update you here when we come up with something.
Hi, not sure whether this will work for you but I've been able to run krr against thanos using the -p flag to set the prometheus-url to the thanos query component in Thanos.
Could you provide the query you used for this?
I tried -p prom-label-proxy.example.com/api/v1/query?cluster="cluster-name" but it doesn't seem to provide the metrics
Could you provide the query you used for this? I tried -p prom-label-proxy.example.com/api/v1/query?cluster="cluster-name" but it doesn't seem to provide the metrics
Sure, what worked for me was just whatever endpoint is exposed for prom-label-proxy, i.e in your example it would just be https://prom-label-proxy.example.com.
Then within prom-label-proxy the label is applied to the query before being passed onto thanos, as described in their readme.
@aantn I think mentioning Thanos as an example here will help some people since in my experience it is the most used "central Prometheus". But I would blame myself more for skipping that part of the docs.
Also, this issue pops up when trying to solve the problem. So now it has the answer.
Activity
LeaveMyYard commentedon Apr 24, 2023
Hey, @farodin91!
Thanks for your issue. I think we will include thanos as one of the features for the near future. I will update you here when we come up with something.
[-]Add long term storage support[/-][+]Add long term storage support (Thanos)[/+]CGPrakashW commentedon May 16, 2023
Hi, not sure whether this will work for you but I've been able to run krr against thanos using the
-pflag to set the prometheus-url to the thanos query component in Thanos.farodin91 commentedon May 16, 2023
My thanos contains data from multiple cluster so it would be help to filter by a label such as cluster.
CGPrakashW commentedon Jun 9, 2023
Just a small update, I've been able to query thanos for metrics in a multi-cluster configuration by querying a prom label proxy instance sitting in front of thanos query: https://github.com/prometheus-community/prom-label-proxy
DjoleLepi commentedon Jul 31, 2023
@CGPrakashW
Could you provide the query you used for this?
I tried
-p prom-label-proxy.example.com/api/v1/query?cluster="cluster-name"but it doesn't seem to provide the metricsCGPrakashW commentedon Jul 31, 2023
Sure, what worked for me was just whatever endpoint is exposed for prom-label-proxy, i.e in your example it would just be
https://prom-label-proxy.example.com.Then within prom-label-proxy the label is applied to the query before being passed onto thanos, as described in their readme.
DjoleLepi commentedon Jul 31, 2023
@CGPrakashW
Thank you very much! I have completely missed that part in the readme. https://github.com/robusta-dev/krr#scanning-with-a-centralized-prometheus
I was also able to use these parameter
--prometheus-label cluster -l cluster-namewith Thanos (no need for prom-label-proxy).It seems like this issue can be closed? @LeaveMyYard
aantn commentedon Jul 31, 2023
@DjoleLepi is there anything we can update in the readme or --help to make it more obvious?
No good having the feature if people aren't finding it!
DjoleLepi commentedon Jul 31, 2023
@aantn I think mentioning Thanos as an example here will help some people since in my experience it is the most used "central Prometheus". But I would blame myself more for skipping that part of the docs.
Also, this issue pops up when trying to solve the problem. So now it has the answer.
LeaveMyYard commentedon Aug 14, 2023
@DjoleLepi I think just to add
ThanosandVictoriaMetricsto readme should be enoughI'm closing this issue, as we already support Thanos