diff --git a/docker-compose.yml b/docker-compose.yml index 5945f06ab..f2c1b2b54 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,5 +14,3 @@ postgres: image: postgres ports: - "5432:5432" - environment: - POSTGRES_USER: ubuntu diff --git a/plugins/postgresql/postgresql_test.go b/plugins/postgresql/postgresql_test.go index ab17601b1..775087700 100644 --- a/plugins/postgresql/postgresql_test.go +++ b/plugins/postgresql/postgresql_test.go @@ -12,7 +12,7 @@ func TestPostgresqlGeneratesMetrics(t *testing.T) { p := &Postgresql{ Servers: []*Server{ { - Address: "host=localhost user=ubuntu sslmode=disable", + Address: "host=localhost user=postgres sslmode=disable", Databases: []string{"postgres"}, }, }, @@ -57,7 +57,7 @@ func TestPostgresqlTagsMetricsWithDatabaseName(t *testing.T) { p := &Postgresql{ Servers: []*Server{ { - Address: "host=localhost user=ubuntu sslmode=disable", + Address: "host=localhost user=postgres sslmode=disable", Databases: []string{"postgres"}, }, }, @@ -78,7 +78,7 @@ func TestPostgresqlDefaultsToAllDatabases(t *testing.T) { p := &Postgresql{ Servers: []*Server{ { - Address: "host=localhost user=ubuntu sslmode=disable", + Address: "host=localhost user=postgres sslmode=disable", }, }, }