Skip to content

Commit 3650c04

Browse files
authored
Merge pull request iamseth#12 from Yannig/metrics_consistency
Metrics name consistency (oracle_tablespace -> oracledb_tablespace).
2 parents 322a979 + 04b792a commit 3650c04

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ The following metrics are exposed currently.
2727
- oracledb_wait_time_scheduler
2828
- oracledb_wait_time_system_io
2929
- oracledb_wait_time_user_io
30-
- oracle_tablespace_bytes
31-
- oracle_tablespace_max_bytes
32-
- oracle_tablespace_bytes_free
30+
- oracledb_tablespace_bytes
31+
- oracledb_tablespace_max_bytes
32+
- oracledb_tablespace_bytes_free
3333

3434
# Installation
3535

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,17 +345,17 @@ ORDER BY
345345
}
346346
defer rows.Close()
347347
tablespaceBytesDesc := prometheus.NewDesc(
348-
"oracle_tablespace_bytes",
348+
prometheus.BuildFQName(namespace, "tablespace", "bytes"),
349349
"Generic counter metric of tablespaces bytes in Oracle.",
350350
[]string{"tablespace", "type"}, nil,
351351
)
352352
tablespaceMaxBytesDesc := prometheus.NewDesc(
353-
"oracle_tablespace_max_bytes",
353+
prometheus.BuildFQName(namespace, "tablespace", "max_bytes"),
354354
"Generic counter metric of tablespaces max bytes in Oracle.",
355355
[]string{"tablespace", "type"}, nil,
356356
)
357357
tablespaceFreeBytesDesc := prometheus.NewDesc(
358-
"oracle_tablespace_bytes_free",
358+
prometheus.BuildFQName(namespace, "tablespace", "free"),
359359
"Generic counter metric of tablespaces free bytes in Oracle.",
360360
[]string{"tablespace", "type"}, nil,
361361
)

0 commit comments

Comments
 (0)