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.
note
This is a Benthos-based collector.
Configuration
First, create a new YAML file for the collector configuration. You will have to use the sql_select Benthos input:
The above section will tell Benthos 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 Benthos in the Benthos collector guide.
Installation
Check out the Benthos collector guide for installation instructions.