OpenMeter can integrate with your Postgres 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.
This is a Benthos-based collector.
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.
Finally, you need to configure the OpenMeter output:
Read more about configuring Benthos in the Benthos-based collector guide.
Check out the Benthos-based collector guide for installation instructions.