S3
OpenMeter can ingest data from an S3-compatible object storage, making integration easier with existing data pipelines. Example of popular S3 compatible object stores:
This guide will show you how to collect data from an S3-compatible object store and ingest it into OpenMeter.
The OpenMeter Collector is powered by Redpanda Connect.
Prerequisites
There are several strategies to collect data from an S3-compatible object store, but all of them depend on how the data is stored. Since we cannot possibly cover all possible scenarios, we will provide a solution for the most common one: batches of data indexed by timestamps.
If your data is not structured that way, check out the aws_s3 Redpanda Connect input documentation for more options.
Configuration
First, create a new YAML file for the collector configuration. You will have to use the aws_s3 Redpanda Connect input:
The above section will tell Redpanda Connect to read data from your S3 bucket in the specified region, and look for objects in the specified prefix (hourly timestamp). You will have to run the collector as a cron job every hour to ingest the data into OpenMeter.
Feel free to tweak the prefix to your needs.
Next, you need to configure the mapping from your schema to CloudEvents using bloblang:
Finally, you need to configure the OpenMeter output:
Read more about configuring Redpanda Connect in the OpenMeter collector guide.
Installation
Check out the OpenMeter collector guide for installation instructions.