Прометей статистика по дням / неделям / месяцам - PullRequest
0 голосов
/ 20 января 2019

Исходя из данных Prometheus, я хочу рассчитать эволюцию на разных таймфреймах значения датчика и отобразить его в таблице, например:

X = increased or decreased by n% from yesterday
X = increased or decreased by n% over last week
X = increased or decreased by n% from the previous month

Пример данных

account_balance {account = "A", currency = "ETH", type = "total"} 0.0215896
account_balance {account = "A", currency = "MCO", type = "total"} 0.0098847
account_balance {account = "A", currency = "WAN", type = "total"} 0.00995828
account_balance {account = "A", currency = "XRP", type = "total"} 0.00599985
account_balance {account = "A", currency = "ZEN", type = "total"} 0.00870029

Я не вижу ничего подобного:

sum (account_balance {type = "total"}) - sum (account_balance {type = "total"} offset 7d)

?

...