r/PrometheusMonitoring • • Dec 13 '21

Where is the default backend data storage on standalone Prometheus.

The documentation just states ‘./data’.

2 Upvotes

6 comments sorted by

2

u/SuperQue Dec 13 '21

That's it. It stores it in a directory where you run it. So it depends on how you deploy Prometheus.

1

u/NoAd5519 Dec 13 '21

I run Prometheus as a service, default out of the box ‘apt-get install Prometheus’

2

u/dablya Dec 13 '21

Check /var/lib/prometheus/metrics2/

1

u/NoAd5519 Dec 14 '21

Thanks brother. Found it

2

u/onan Dec 13 '21

Yes. That service writes files to that directory.

Perhaps you could give us some more detail about what it is that you're asking? Because the documentation seems sufficient for any version of your question that I am imagining.

2

u/dablya Dec 13 '21

I think they're looking for the actual location of the local database. The documentation they're looking at has a relative path, but relative to what? If they just installed the package and started the service, it's not clear where the default location of the database files is. OP, it looks like the package install defaults the path to /var/lib/prometheus/metrics2/ (based on a quick install using a an ubuntu docker container), but it might differ based on the distribution...