ClickHouse
OpenMeter can integrate with your ClickHouse database to collect usage data directly from your database. By leveraging your existing data source for usage metering, you can significantly decrease the upfront cost of changing your data collection strategy.
The OpenMeter Collector is powered by Redpanda Connect.
Configuration
First, create a new YAML file for the collector configuration. You will have to use the sql_select Redpanda Connect input:
The above section will tell Redpanda Connect how to read data from your database.
Next, you need to configure the mapping from your database 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.