oracledb_exporter icon indicating copy to clipboard operation
oracledb_exporter copied to clipboard

Output Metrics in vector format

Open mdhedhy opened this issue 2 years ago • 1 comments

I'm submitting a feature request

When I use the exporter for a query:

SELECT column1, column2, column3, column4 from tablex;

it should provide the output as following vector format (like the mysqldexporter for prometheus)

metricsname{ column1="value1", column2="value2", column3="value3"}

However it outputs as follows: metricsnamecolumn1 value1 metricsnamecolumn2 value2 . .

if I am doing something wrong and the current version can provide this format do let me know.

mdhedhy avatar Sep 25 '23 16:09 mdhedhy

Hi,

You can use labels parameter to tell to the exporter which field to use as a label.

Here is an example : https://github.com/iamseth/oracledb_exporter/blob/master/custom-metrics-example/multi-metric-dual-example-labels.toml

Let me know if it's what you are looking for.

Yannig avatar Oct 29 '23 09:10 Yannig