Skip to content
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

Intermittent "error":"vector cannot contain metrics with the same labelset" #2704

Open
lucasvscosta96 opened this issue Apr 18, 2024 · 8 comments

Comments

@lucasvscosta96
Copy link

I'm using Opencost version 1.90.0
Thanos version 0.35.0

I'm seeing intermittent "error": vector cannot contain metrics with the same labelset
Query: avg(avg_over_time(node_ram_hourly_cost{}[1d])) by (node, cluster_id, instance-type, provider_id)

@mattray
Copy link
Collaborator

mattray commented Apr 19, 2024

Is that OpenCost 1.90 or 1.109?

@lucasvscosta96
Copy link
Author

1.109.0

@mattray
Copy link
Collaborator

mattray commented Apr 22, 2024

How is this expressed in the application? Are your node RAM graphs missing?

@lucasvscosta96
Copy link
Author

No.
When UI is accessed, in console log return 500 with this message.
I'm suspicious of the time zone. Opencost is running in UTC but I need running in UTC-3, then, I put variable environment TZ = "America/Sao_Paulo", but it doesn't work

@lucasvscosta96
Copy link
Author

lucasvscosta96 commented Apr 22, 2024

I found this Warn:
WRN Cost model.ComputeAllocation: Node GPU Cost Query result missing field: " 'instance_type' field does not exist in data result vector" for node fargate

If I try put query on Thanos return successful

@mattray
Copy link
Collaborator

mattray commented Apr 23, 2024

You're running Thanos instead of Prometheus? I'm not very familiar with that configuration and it's undocumented. Is that the only piece not working?

@lucasvscosta96
Copy link
Author

Yes.
I'm using Thanos instead Prometheus because is not possible make query in Prometheus running in agent mode

@mattray
Copy link
Collaborator

mattray commented Apr 24, 2024

OK, so you've got OpenCost running and the Prometheus agent scraping it and forwarding to Thanos? The typical setup is to have the opencost container scraped by Prometheus then queries to the OpenCost API are Prometheus queries behind the API calls. Did you deploy with the Helm chart and setup the external Prometheus?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants