Comment on federation issue to instance
Nothing4You@programming.dev 3 weeks agoso all you’re looking for is the amount of activities generated per instance?
that is only a small subset of the data currently collected, most of the storage use currently comes from collecting information in relation to other instances.
CanadaPlus@lemmy.sdf.org 3 weeks ago
Yep. As far as I know nobody else collects that information, though.
Nothing4You@programming.dev 3 weeks ago
I’ll probably have to look at another storage than prometheus, aiui it’s not really well suited for this task.
maybe something with influxdb+telegraf, although i haven’t looked at that yet.
CanadaPlus@lemmy.sdf.org 3 weeks ago
Thanks for the attention to this! If I can help in any way just say so.
Nothing4You@programming.dev 2 weeks ago
do you happen to have experience with setting up influxdb and telegraf? or maybe something else that might be better suited?
the metrics are currently in prometheus metrics format and scraped every 5 minutes.
my idea was to keep the current retention for most metrics and have longer retention (possibly with lower granularity for data older than a month).
the current prometheus setup is super simple, you can see (and older copy of) the config here.
if you want to build a configuration for influxdb/telegraf that i can more or less just drop in there without too many adjustments that would certainly be welcomed.
the metric that would need longer retention is
lemmy_federation_state_last_successful_id_local
.