Skip to content

Commit 9c553f5

Browse files
committed
chore: bundle PG9 legacy configs under legacy/
1 parent c0e6d01 commit 9c553f5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+54
-7
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ conf:
9191

9292
# generate legacy merged config for PostgreSQL 9.1 - 9.6
9393
conf9:
94-
rm -rf pg_exporter_pg9.yml
95-
cat legacy/*.yml >> pg_exporter_pg9.yml
94+
rm -rf legacy/pg_exporter.yml
95+
cat legacy/config/*.yml >> legacy/pg_exporter.yml
9696

9797
# Backward-compatible alias (deprecated)
9898
conf-pg9: conf9

README.md

Lines changed: 11 additions & 1 deletion

exporter/config_coverage_pg9_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ import (
77
"testing"
88
)
99

10-
// Ensure the legacy/ config covers PG9.1..PG9.6 without version gaps for
11-
// collectors that are supposed to work on legacy PG9.x.
12-
func TestConfigCoveragePG9(t *testing.T) {
10+
// Ensure the legacy config (legacy/config) covers PG9.1..PG9.6 without version
11+
// gaps for collectors that are supposed to work on legacy PG9.x.
12+
func TestConfigCoveragePG9(t *testing.T) {
1313
_, thisFile, _, ok := runtime.Caller(0)
1414
if !ok {
1515
t.Fatal("runtime.Caller failed")
1616
}
17-
configDir := filepath.Clean(filepath.Join(filepath.Dir(thisFile), "..", "legacy"))
17+
configDir := filepath.Clean(filepath.Join(filepath.Dir(thisFile), "..", "legacy", "config"))
1818
if _, err := os.Stat(configDir); err != nil {
1919
t.Skipf("legacy config dir not found: %s: %v", configDir, err)
2020
}

legacy/README.md

Lines changed: 37 additions & 0 deletions

0 commit comments

Comments
 (0)