清除Grafana中的旧数据 [英] Clear old data in Grafana
问题描述
我正在使用Prometheus和Grafana监视服务器.
Grafana数据存储在/home/user/data
文件夹中.
I'm using Prometheus and Grafana for monitoring the servers.
Grafana data were stored in /home/user/data
folder.
此文件夹占据了文件系统的大部分.
This folder occupied the majority of the file system .
需要删除Grafana data
文件夹中的旧数据(大于一个月的数据)
Need to remove the old data in Grafana data
folder ( Data which is older than a month )
推荐答案
Grafana不会保存Prometheus中的数据.它查询Prometheus并显示UI.在这种情况下,您将不得不清除Prometheus数据.
Grafana does not saves data from Prometheus. It queries Prometheus and displays UI. In this case, you would have to look at purging Prometheus data.
普罗米修斯默认情况下有15天的保留期.但这可以通过-storage.local.retention标志进行调整以适合您的需求
Prometheus by default has a 15 day retention period. But this could be adjusted by the -storage.local.retention flag to suit your needs
这篇关于清除Grafana中的旧数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!