Relative Content

Tag Archive for open-telemetryopen-telemetry-collectorotel

How to use OpenTelemetry Collector to query multiple databases as a metric

I’m currently using the sqlquery receiver of the OpenTelemetry Collector to query a single database for custom metrics. Now, I need to expand this query to cover multiple data sources. With 20 databases to query, copying and pasting the same query and metric configurations results in about 2000 lines of code, which is unreadable, unmaintainable, and prone to errors.
Does anyone have suggestions or best practices for efficiently managing queries across multiple databases?