Grafana仪表板显示从普罗米修斯删除的信息 [英] Grafana dashboard showing deleted information from prometheus

查看:330
本文介绍了Grafana仪表板显示从普罗米修斯删除的信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用grafana和prometheus监视安装在AWS上的我的应用程序.升级应用程序时,我会收到我的计算机的新实例ID.虽然Prometheus已使用新实例ID更新,但grafana除了显示新实例ID之外,仍然显示旧实例ID.

I'm using grafana and prometheus to monitor my app which is installed on aws. when upgrading my app I receive a new instance id for my machine. while prometheus is updated with the new instance id, grafana still shows the old instance id in addition to the new one.

如何从grafana中清除旧的和不必要的信息?

How can I clear old and unnecessary inforamtion from grafana?

我通过运行以下查询来获取实例ID作为参数:

I get the instance id as parameter by running the following query:

label_values(cts_per_processor_task_duration_seconds_sum{job="octane-apps",region="$region"}, instance)

据我所知,它并未从仪表板JSON文件中删除.

From what I see, it is not deleted from the dashboard JSON file.

谢谢!

推荐答案

prometheus也监视新实例,但是旧"数据仍在模板变量然后使用选择框过滤您的计算机.

The new instance is also monitored by prometheus, but the "old" data is still in the storage. There is a default data retention time of 15 days, so all the data for your old machine should be gone after that period automatically. Being able to compare data of the old version of your app (historical) with current data is a nice feature though, why do you want to get rid of the data immediately? If you just like to "hide" it in certain graphs or boards, add a template variable and then use the select box to filter your machines.

这篇关于Grafana仪表板显示从普罗米修斯删除的信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆