Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Rename mistakenly named metric.
Browse files Browse the repository at this point in the history
  • Loading branch information
lesovsky committed Sep 1, 2021
1 parent cae5ba2 commit 6c7e7e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/collector/postgres_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func NewPostgresDatabasesCollector(constLabels labels, settings model.CollectorS
settings.Filters,
),
sessionalltime: newBuiltinTypedDesc(
descOpts{"postgres", "database", "session_time_all_seconds_total", "Total time spent by database sessions in this database in all states, in seconds", .001},
descOpts{"postgres", "database", "session_time_seconds_all_total", "Total time spent by database sessions in this database in all states, in seconds", .001},
prometheus.CounterValue,
labels, constLabels,
settings.Filters,
Expand Down
2 changes: 1 addition & 1 deletion internal/collector/postgres_database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func TestPostgresDatabasesCollector_Update(t *testing.T) {
// TODO: wait until Postgres 14 has been released, update Postgres version on pgscv-testing docker image
// and move these metrics to 'required' slice.
optional: []string{
"postgres_database_session_time_all_seconds_total",
"postgres_database_session_time_seconds_all_total",
"postgres_database_session_time_seconds_total",
"postgres_database_sessions_all_total",
"postgres_database_sessions_total",
Expand Down

0 comments on commit 6c7e7e6

Please sign in to comment.