Git Product home page Git Product logo

Comments (5)

mattray avatar mattray commented on June 8, 2024

I assume you used the default Prometheus installation? Could you check on its health and see that it's working properly?

There was a build that was accidentally promoted to latest, I don't know if that's causing the issue but could you set your version to 1.109.0 just to ensure we know what you're using? The data is kept in the Prometheus pod, so restarting OpenCost won't lose data assuming Prometheus is working right.

from opencost.

kumaran99 avatar kumaran99 commented on June 8, 2024
Screenshot 2024-04-03 at 12 49 26 PM

Hey @mattray, following your advice, I've checked the Prometheus health. It appears that after port-forwarding on my local machine, I can successfully query. However, the data retrieved only extends until March 27th. Since the Opencost dashboard also shows data until March 27th, we can infer that Opencost is functioning properly. Therefore, it seems the issue lies with Prometheus, right?

image: "quay.io/prometheus/prometheus:v2.50.1".

This is the image I am using for prometheus-server. should I update this because so far I've seen every pod is running properly.

Screenshot 2024-04-03 at 12 59 29 PM Screenshot 2024-04-03 at 1 00 42 PM

from opencost.

mattray avatar mattray commented on June 8, 2024

My suggestion is to set OpenCost to 1.109.0 and restart the pod. Prometheus scrapes OpenCost and acts as the database (OpenCost then queries Prometheus for API results), so in your case it looks like OpenCost isn't providing data to Prometheus. Restarting OpenCost should fix the issue and you'll have a few days missing in Prometheus (you should know about 10 minutes after restarting OpenCost).

from opencost.

kumaran525 avatar kumaran525 commented on June 8, 2024
Screenshot 2024-04-04 at 8 59 44 PM Screenshot 2024-04-04 at 9 02 56 PM

Hello @mattray, despite changing the opencost image tag to 1.109.0, I'm still encountering the same issue. Opencost is only displaying data until March 27, and opencost logs indicate that it's unable to query. I'm puzzled as to why Opencost can query or calculate metrics until March 27 but not after. Should it not display data before March 27 as well? Can you assist me in identifying where I may be missing something?

from opencost.

mattray avatar mattray commented on June 8, 2024

This seems really strange. Did something happen to your Prometheus? At this point I don't have any good suggestions, you're coming up on 2 weeks of no data and the Prometheus installation only keeps 15 days by default. I think reinstalling Prometheus following the instructions closely is the only suggestion I have, which will lose the little data that you have.

from opencost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.