matemat: truncate statistics for existing influxdb schema
This commit is contained in:
parent
f996f06083
commit
77c864b4d7
|
@ -13,7 +13,7 @@ points = []
|
||||||
data = JSON.parse open("https://#{HOST}/statistics.json", :http_basic_authentication => [USER, PASSWORD]).read()
|
data = JSON.parse open("https://#{HOST}/statistics.json", :http_basic_authentication => [USER, PASSWORD]).read()
|
||||||
points.push({
|
points.push({
|
||||||
series: 'statistics',
|
series: 'statistics',
|
||||||
values: data,
|
values: data.map { |(n, i)| [n, i.to_i] },
|
||||||
})
|
})
|
||||||
|
|
||||||
data = JSON.parse open("http://#{HOST}/summary.json", :http_basic_authentication => [USER, PASSWORD]).read()
|
data = JSON.parse open("http://#{HOST}/summary.json", :http_basic_authentication => [USER, PASSWORD]).read()
|
||||||
|
|
Loading…
Reference in New Issue