0

I configured Prometheus to push metrics using remote_write but the local storage is still in use and keeps growing

How could Prometheus be configured to stop storing locally and only push metrics or to minimize the retention policy from the local storage?

nbari
  • 101
  • 1

1 Answers1

0

Prometheus can run in agent mode. In this mode it doesn't store data locally - it just sends the scraped samples to the configured remote storage systems. See this article for details.

P.S. see also the project I work on - vmagent - this is lightweight Prometheus-compatible agent, which understands Prometheus scrape configs. It usually requires lower amounts of memory and CPU comparing to Prometheus when scraping the same targets.

valyala
  • 101
  • 1