Report agent metrics to time-series database

Is there a common way how to report master/satellite/agent performance to some time-series database (e.g InfluxDB, Prometheus)

Basically reporting metrics:

curl -k -s -u user:pass 'https://localhost:5665/v1/status?pretty=1'

I’m mostly interested in performance data like work_queue_items, connected clients eventually icinga2 memory usage (to detect memory leaks), etc.