#How long does Netdata sore metrics?
1 messages · Page 1 of 1 (latest)
I already found out 😄 It shows 377 charts. Sorry for false alarm.
@amber viper hey it very depends - from several thousand to tens of thousands. You can check the number using /api/v2/info endpoint
Look for db_size -> currently_collected_metrics
Oh that is great info
For instance, I have 18K on one of my Proxmox server (it has a lot of VMs)
That is some great advice. I am very grateful to you!
db_size -> currently_collected_metrics includes children metrics on a parent instance.
This is stats from the parent ND in our lab we use to test things
"db_size":[{
"tier":0,
"disk_used":4163017324,
"disk_max":4294967296,
"disk_percent":96.9278003,
"from":1691524360,
"to":1691749564,
"retention":225204,
"expected_retention":232342,
"currently_collected_metrics":18133
},{
"tier":1,
"disk_used":2062835252,
"disk_max":2147483648,
"disk_percent":96.0582519,
"from":1690534980,
"to":1691749564,
"retention":1214584,
"expected_retention":1264424,
"currently_collected_metrics":18133
},{
"tier":2,
"disk_used":1041573692,
"disk_max":1073741824,
"disk_percent":97.0041092,
"from":1683716400,
"to":1691749564,
"retention":8033164,
"expected_retention":8281261,
"currently_collected_metrics":18133
}],
currently_collected_metric 1.3 Million (this parent has 250+ children)
I see now. I wonder why the retention times are negative with us
"db_size": [
{
"tier": 0,
"disk_used": 2838528,
"disk_max": 8589934592,
"disk_percent": 0.0330448,
"from": 9223372036854775807,
"to": 1691751436,
"retention": -9223372035163024371,
"expected_retention": -9223372036854775808,
"currently_collected_metrics": 9122
}
]
Looks like a bug with first_time_s ("from"), I reported it.
What is your Netdata version?
show netdata -W buildinfo
I need this info to open a bug report
Oh. I am already out of office. I will write to you on Monday. Thanks for your assistance!