Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create influxdb plugin for mavlink logging #991

Open
fnoop opened this issue Sep 7, 2020 · 1 comment
Open

Create influxdb plugin for mavlink logging #991

fnoop opened this issue Sep 7, 2020 · 1 comment

Comments

@fnoop
Copy link
Member

fnoop commented Sep 7, 2020

Supercedes: #500

Instead of trying to read log files in realtime, instead hook straight into a mavlink log stream and get the logging data from there.

Ardupilot: https://mavlink.io/en/messages/ardupilotmega.html#REMOTE_LOG_DATA_BLOCK
PX4?: https://mavlink.io/en/messages/common.html#LOGGING_DATA

Example of python mavproxy module reading data from ardupilot: https://github.com/ArduPilot/MAVProxy/blob/master/MAVProxy/modules/mavproxy_dataflash_logger.py

We could write a collectd or telegraf plugin, or possibly just a straight influxdb plugin:
https://docs.influxdata.com/influxdb/v2.0/write-data/best-practices/optimize-writes/
https://docs.influxdata.com/influxdb/v2.0/reference/api/client-libraries/

The advantage of writing eg. collectd plugin is that it should be agnostic to the backend, ie we can replace influxdb. However writing an influxdb plugin will probably be much faster/performant.

@fnoop
Copy link
Member Author

fnoop commented Sep 7, 2020

This should replace mavlogd

@fnoop fnoop added this to the 1.3 milestone Oct 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant