Enmas
September 3, 2021, 8:00pm
1
Hi
Is there a way to use Telegraf to read data from a local influxdb bucket (OSS) and write that data into a different influxdb cloud bucket?
The output plugin is working, but I can’t find a input plugin that reads from a influx bucket on localhost? Preferably using flux-lang to make the query.
If Telegraf is not the preferred way to go, what are my options then?
Best regards
Thomas
Anaisdg
September 9, 2021, 7:10pm
2
Hello @Enmas ,
You can use the execd input plugin and any client library to continuously query a local InfluxDB instance and write data to Cloud:
There isn’t an InfluxDB input plugin.
But that’s a good idea for a external plugin:
# External Plugins
This is a list of plugins that can be compiled outside of Telegraf and used via the `execd` [input](plugins/inputs/execd), [output](plugins/outputs/execd), or [processor](plugins/processors/execd).
Check out the [external plugin documentation](/docs/EXTERNAL_PLUGINS.md) for more information on writing and contributing a plugin.
Pull requests welcome.
## Inputs
- [awsalarms](https://github.com/vipinvkmenon/awsalarms) - Simple plugin to gather/monitor alarms generated in AWS.
- [octoprint](https://github.com/BattleBas/octoprint-telegraf-plugin) - Gather 3d print information from the octoprint API.
- [opcda](https://github.com/lpc921/telegraf-execd-opcda) - Gather data from [OPC Fundation's Data Access (DA)](https://opcfoundation.org/about/opc-technologies/opc-classic/) protocol for industrial automation.
- [open-hardware-monitor](https://github.com/marianob85/open_hardware_monitor-telegraf-plugin) - Gather sensors data provided by [Open Hardware Monitor](http://openhardwaremonitor.org)
- [plex](https://github.com/russorat/telegraf-webhooks-plex) - Listens for events from Plex Media Server [Webhooks](https://support.plex.tv/articles/115002267687-webhooks/).
- [rand](https://github.com/ssoroka/rand) - Generate random numbers
- [SMCIPMITool](https://github.com/jhpope/smc_ipmi) - Python script to parse the output of [SMCIPMITool](https://www.supermicro.com/en/solutions/management-software/ipmi-utilities) into [InfluxDB line protocol](https://docs.influxdata.com/influxdb/latest/reference/syntax/line-protocol/).
- [systemd-timings](https://github.com/pdmorrow/telegraf-execd-systemd-timings) - Gather systemd boot and unit timestamp metrics.
- [twitter](https://github.com/inabagumi/twitter-telegraf-plugin) - Gather account information from Twitter accounts
- [youtube](https://github.com/inabagumi/youtube-telegraf-plugin) - Gather account information from YouTube channels
- [Big Blue Button](https://github.com/bigblueswarm/bigbluebutton-telegraf-plugin) - Gather meetings information from [Big Blue Button](https://bigbluebutton.org/) server
This file has been truncated. show original
@popey
Hi @Enmas ,
I’m following up on this because InfluxDB 2.1 introduced an improved to()
function in Flux that does exactly this!
Just call it at the end of a query on your OSS instance, pass into it the host, org, token and bucket for your cloud instance, and it will write the queried data for you.