prometheus-k8s-operator icon indicating copy to clipboard operation
prometheus-k8s-operator copied to clipboard

Better juju status message when `/var/lib/prometheus` is full

Open WizardBit opened this issue 4 months ago • 2 comments

Enhancement Proposal

Currently when /var/lib/prometheus is full the following message is shown in the output of juju status.

prometheus/0*              blocked   idle       172.16.1.135         Prometheus failed to restart (config valid?); see debug logs

juju debug-log eventually shows the following:

caller=main.go:1270 level=error err="opening storage failed: lock DB directory: open /var/lib/prometheus/lock: no space left on device"

WizardBit avatar Aug 18 '25 21:08 WizardBit

Hey @WizardBit , IIUC you're suggesting to communicate the no space left on device on the juju status itself, right?

I think we could even - in the logs - refer to a troubleshooting document explaining what to do in that situation and how to free up space. What do you think?

lucabello avatar Aug 20 '25 09:08 lucabello

Hey @lucabello, yes if there could be a message in the juju status itself mentioning no space left on device would be great.

Referencing to documentation is a good idea. My only concern is that it may differ depending on the storage backend used.

WizardBit avatar Aug 20 '25 14:08 WizardBit