oracledb_exporter icon indicating copy to clipboard operation
oracledb_exporter copied to clipboard

Issues with Default-metrics-toml queries - "no metrics found while parsing"

Open kr2792 opened this issue 2 years ago • 1 comments

Good day to you 👏

I've installed the oracledb_exporter version 0.3.0 as binary package. It's set up and shows some of the the metrics which prometheus then scrapes from.

There's some problems with a few queries in the default-metrics file.

  • Error scraping for wait_time _ map[value:Generic counter metric from v$waitclassmetric view in Oracle.] : No metrics found while parsing" source="main.go:266"

  • Error scraping for size_user_segments_top100 _ map[table_partition_bytes:Gauge metric with the size of the table partition in user segments.] : No metrics found while parsing" source="main.go:266"

  • Error scraping for resource _ map[current_utilization:Generic counter metric from v$resource_limit view in Oracle (current value). limit_value:Generic counter metric from v$resource_limit view in Oracle (UNLIMITED: -1).] : No metrics found while parsing" source="main.go:266"

  • Error scraping for wait_time _ map[value:Generic counter metric from v$waitclassmetric view in Oracle.] : No metrics found while parsing" source="main.go:266"

  • Error scraping for size_user_segments_top100 _ map[cluster_bytes:Gauge metric with the size of the cluster in user segments.] : No metrics found while parsing" source="main.go:266

  • Error scraping for size_user_segments_top100 _ map[table_partition_bytes:Gauge metric with the size of the table partition in user segments.] : No metrics found while parsing" source="main.go:266"

  • Error scraping for resource _ map[current_utilization:Generic counter metric from v$resource_limit view in Oracle (current value). limit_value:Generic counter metric from v$resource_limit view in Oracle (UNLIMITED: -1).] : No metrics found while parsing" source="main.go:266

  • "Error scraping for size_user_segments_top100 _ map[cluster_bytes:Gauge metric with the size of the cluster in user segments.] : No metrics found while parsing" source="main.go:266

  • Error scraping for wait_time _ map[value:Generic counter metric from v$waitclassmetric view in Oracle.] : No metrics found while parsing" source="main.go:266"

  • Error scraping for size_user_segments_top100 _ map[table_partition_bytes:Gauge metric with the size of the table partition in user segments.] : No metrics found while parsing" source="main.go:266

Is it a permissions issue at my hand or is something else?

Any help is appreciated. 👍

kr2792 avatar Aug 25 '22 15:08 kr2792

Please run your query with sqlplus(don't forget to add ; when doing it) and check if you get an error. I had this kind of issue when the label was not found because I had a typo in the query and no data was returned.

Acsigen avatar Dec 05 '22 09:12 Acsigen