iamseth/oracledb_exporter

Output Metrics in vector format

mdhedhy opened this issue · 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.

Yannig commented

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.