Code Monkey home page Code Monkey logo

Comments (10)

johrstrom avatar johrstrom commented on August 11, 2024

It appears to be this flag --storage.tsdb.retention.time.

https://prometheus.io/docs/prometheus/latest/storage/

from jmeter-prometheus-plugin.

Sravanthi0614 avatar Sravanthi0614 commented on August 11, 2024

Using this tag in prometheus.yml file, it is throwing error. Kindly help me where and how I need to configure this tag.

from jmeter-prometheus-plugin.

johrstrom avatar johrstrom commented on August 11, 2024

I think it's a flag that you pass to Prometheus when you boot it up.

from jmeter-prometheus-plugin.

Sravanthi0614 avatar Sravanthi0614 commented on August 11, 2024

Can you please brief me on where the parameters are passed to Prometheus(eg:setup or bin or etc folders or any file - as i couldn't find them) during the boot up.

from jmeter-prometheus-plugin.

johrstrom avatar johrstrom commented on August 11, 2024

How does your Prometheus server start? Do you have a systemd unit file?

from jmeter-prometheus-plugin.

Sravanthi0614 avatar Sravanthi0614 commented on August 11, 2024

I am starting Prometheus as a service, by clicking on prometheus.exe
there is no systemd unit file

from jmeter-prometheus-plugin.

Sravanthi0614 avatar Sravanthi0614 commented on August 11, 2024

FYI, i am running on windows machine.

from jmeter-prometheus-plugin.

johrstrom avatar johrstrom commented on August 11, 2024

Got it. So I'm unfamiliar with how Windows made that icon that you click. But if it's a text file that you see prometheus.exe in, that's where you'd edit.

Basically you want to issue this to use 2 weeks, instead of just issuing prometheus.exe.

prometheus.exe --storage.tsdb.retention.time=2w

from jmeter-prometheus-plugin.

Sravanthi0614 avatar Sravanthi0614 commented on August 11, 2024

I successfully started prometheus with the following argument in the windows command prompt.
prometheus.exe --storage.tsdb.retention.time=1y

and the console no longer announces prometheus is using the default 15 days data retention.
But it is not confirming its using 1 year data retention in the console (it doesn't report anything about data retention, this time), and I also saw in the console multiple ..."Deleting obsolete block"... lines. We dont have data that is older than 1 year but we do have data that goes back to 15 days old threshold, so it looks like it might still be behaving as if the data retention is still set for 15 days. To at least help figure out what is going on here, is there a way to get prometheus on windows to always announce in the console its data retention effective setting?
Thanks in advance!

from jmeter-prometheus-plugin.

johrstrom avatar johrstrom commented on August 11, 2024

I also saw in the console multiple ..."Deleting obsolete block"... lines.

I believe this is normal in that the system is compacting data and/or restructuring the data internally. So it's not removing data really, it's just shifting it around for optimizations.

is there a way to get prometheus on windows to always announce in the console its data retention effective setting?

I believe there's a config page you can navigate to. This may tell you what you're looking for.

from jmeter-prometheus-plugin.

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.