Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试从 Graphite 获取指标“activelogins”的值。每次用户登录时,我都会将该值增加 1,并在他注销时将其减少。我需要在我的仪表板中显示当前的“活动登录”数量。按预期使用查询 summarize(stats_counts.user.activelogins,"99years", "sum") 只会给我总和,而不是我真正想要的电流。
summarize(stats_counts.user.activelogins,"99years", "sum")
如何从 Graphite 获取“activelogins”的当前计数?
我想你可以使用 和 的导数的绝对值stats_counts.user.activelogins而不是总结这一点,如absolute(derivative(stats_counts.user.activelogins)).
stats_counts.user.activelogins
absolute(derivative(stats_counts.user.activelogins))