-
Notifications
You must be signed in to change notification settings - Fork 527
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
Add Victoria Metrics support #1860
Comments
This sounds like a worthwhile enhancement we'd take PRs for. @AjayTripathy do you have recommendations for how to proceed? |
#1430 and #1861 were merged. https://www.opencost.io/blog/victoria-metrics |
@mattray Is there a current status on this? It looks like the MRs's required referenced, were merged, one was reverted, and then put back in and re-merged. |
@joelhess you can partially follow a guide https://victoriametrics.com/blog/monitoring-kubernetes-costs-with-opencost-and-victoriametrics/. Unfortunately image of version 2.2.0, which contains functionality, described in a guide was removed from registry. You need to build your own image |
The 2.2.0 was an inadvertent Kubecost-versioned build that we've removed. OpenCost 1.110.0 should contain this and ship soon. |
Is there a target date for v1.110? We're trying to plan out some work and this would be helpful to know if we should just use Prom for now. (We'd much prefer Victoria as that's what we're using for everything else) |
We're hoping to get the release out soon, but we're blocking on getting a UI for the Carbon Costs and Datadog integration merged. |
Is the VictoriaMetrics support included in the latest release, v1.110? |
@PabloSebastian yes, it was released in 1.110. you can find information in a blog post |
@AndrewChubatiuk Thanks for the quick response!
Do you know if it is a common issue? |
You've copied VictoriaMetrics address from blogpost, is it available at http://vmsingle-victoria-metrics-k8s-stack.victoria-metrics.svc:8429/prometheus in your case? also have you deployed vmstack helm chart it in the same cluster in |
Yes, I have deployed the VictoriaMetrics stack in the same cluster in the
|
Sorry, haven't read your error correctly. this error is expected, as Opencost didn't want to support multiple prometheus endpoints (one was required to retrieve scrape config from VMAgent, another one - to scrape metrics from VMSingle). That's why scrape interval should be set manually for opencost as it's mentioned in a blog |
@AndrewChubatiuk can we close this issue? |
We're trying to follow up on this. There's another issue tracking on the helm chart repo, but we don't really think it's related there.. opencost/opencost-helm-chart#201 |
Is your feature request related to a problem? Please describe.
We're using Victoria Metrics for monitoring, which is provides same API as Prometheus but has a different architecture.
In a multicluster monitoring configuration instead of having Prometheus instance on each cluster Victoria Metrics provides component called VMAgent, which has no
/query
or/query_range
endpoints. It scrapes metrics from K8s cluster and pushes them to VMCluster. VMCluster stores all metrics and has/query
and/query_range
endpoints to query them, but VMCluster has no/status/config
endpoint (which is used by OpenCost to get scrape configuration). Opencost has ability to configure only one Prometheus endpoint for both/query
and/status/config
endpoints, which is not applicable for Victoria Metrics setup.Another problem is that Opencost relies on a local Prometheus setup, that's why it doesn't filter current cluster metrics, which is not applicable for VMCluster as well.
Describe the solution you'd like
To support Victoria Metrics it's needed to:
The text was updated successfully, but these errors were encountered: