Hello, we need to retain data for a long time, and I have added the retention parameter --storage.tsdb.retention.time=2y in the prometheus.service file. And this was working as expected for about four months.
However, now, when I look at my Grafana panels (which used to show data going far back) I am now only seeing max of 15 days of data. In my log files, I am finding what appear to be entries deleting “obsolete” prometheus data:
Am I interpreting the above log entry correctly – Prometheus is rolling off what it thinks is obsolete?
If so, how can I determine why my --storage.tsdb.retention.time=2y is not being observed anymore, and what can I do about it? Storage is not an issue, only using 2% of the partition allocated for prometheus storage.
Hello, we need to retain data for a long time, and I have added the retention parameter --storage.tsdb.retention.time=2y in the prometheus.service file. And this was working as expected for about four months.
However, now, when I look at my Grafana panels (which used to show data going far back) I am now only seeing max of 15 days of data. In my log files, I am finding what appear to be entries deleting “obsolete” prometheus data:
Am I interpreting the above log entry correctly – Prometheus is rolling off what it thinks is obsolete?
If so, how can I determine why my --storage.tsdb.retention.time=2y is not being observed anymore, and what can I do about it? Storage is not an issue, only using 2% of the partition allocated for prometheus storage.
Can you look in the Status page? Can you post a screenshot? The
retention is shown here.
Each of these is a separate line. Note that in the actual .service file, each of the “–” lines is indented five spaces. These indents were dropped when I pasted these in this post.
“Lines ending in a backslash are concatenated with the following line while reading and the backslash is replaced by a space character. This may be used to wrap long lines.”
So I think you are missing backslashes on each of those lines (except the final one).
but the container is not running and it is throwing error like Error parsing commandline arguments: unknown short flag ‘-–’
Error parsing commandline arguments: unknown short flag ‘-–’