coroot/coroot-pg-agent

Very long metrics values

Closed this issue · 0 comments

Hello,

We're using Coroot Pg Agent to get metrics from PostGreSQL, which works great.
Metrics are exposed to FluentBit, which scrape them, and finally send them to OpenTelemetry.

Though there is a problem with some metrics in FluentBit.
Some pg_top_query_* metrics can be very long, thousands of chars, and FluentBit can't process them.

Is there a possibility to add some kind of string truncating to all the query strings, to limit the length of the metrics ?

Thank you :)