pglift-cli 2.6.1__tar.gz → 3.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/PKG-INFO +1 -1
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/instance.py +1 -1
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/prometheus.py +7 -3
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/role.py +2 -2
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/tests/expect/test-cli-walkthrough.t +27 -20
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/tests/expect/test-demote.t +0 -1
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/tests/expect/test-help.t +32 -18
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/tests/unit/test_util.py +2 -2
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/.gitignore +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/README.md +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/hatch.toml +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/pyproject.toml +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/pytest.ini +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/__init__.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/__main__.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/_settings.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/_site.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/base.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/console.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/database.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/hookspecs.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/main.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/model.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/patroni.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/pgbackrest/__init__.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/pgbackrest/repo_path.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/pgconf.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/pghba.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/pm.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/postgres.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/py.typed +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/util.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/src/pglift_cli/wal.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/tests/expect/.gitignore +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/tests/expect/test-base.t +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/tests/expect/test-port-validation.t +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/tests/expect/test-prometheus.t +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/tests/expect/test-standby-pgbackrest.t +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/tests/expect/test-standby.t +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/tests/expect/test-transactions.t +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/tests/expect/test-upgrade.t +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/tests/unit/__init__.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/tests/unit/conftest.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/tests/unit/test__site.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/tests/unit/test_audit.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/tests/unit/test_cli.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/tests/unit/test_main.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/tests/unit/test_model.py +0 -0
- {pglift_cli-2.6.1 → pglift_cli-3.0.0}/tests/unit/test_pm.py +0 -0
|
@@ -197,7 +197,7 @@ async def apply(
|
|
|
197
197
|
obj.lock,
|
|
198
198
|
audit(dry_run=dry_run),
|
|
199
199
|
diff.enabled(diff_format),
|
|
200
|
-
manager.from_manifest(
|
|
200
|
+
manager.from_manifest(instance, settings=_site.SETTINGS, actual=actual),
|
|
201
201
|
):
|
|
202
202
|
ret = await instances.apply(_site.SETTINGS, instance)
|
|
203
203
|
if output_format == "json":
|
|
@@ -71,7 +71,7 @@ async def apply(
|
|
|
71
71
|
dry_run: bool,
|
|
72
72
|
diff_format: diff.Format | None,
|
|
73
73
|
) -> None:
|
|
74
|
-
"""Apply manifest as a Prometheus postgres_exporter."""
|
|
74
|
+
"""Apply manifest as a Prometheus postgres_exporter (DEPRECATED)."""
|
|
75
75
|
settings = prometheus.get_settings(_site.SETTINGS)
|
|
76
76
|
name = data["name"]
|
|
77
77
|
op: types.Operation = "update" if impl.exists(name, settings) else "create"
|
|
@@ -93,7 +93,7 @@ async def apply(
|
|
|
93
93
|
@click.pass_obj
|
|
94
94
|
@async_command
|
|
95
95
|
async def install(obj: Obj, postgresexporter: PostgresExporter) -> None:
|
|
96
|
-
"""Install the service for a (non-local) instance."""
|
|
96
|
+
"""Install the service for a (non-local) instance (DEPRECATED)."""
|
|
97
97
|
settings = prometheus.get_settings(_site.SETTINGS)
|
|
98
98
|
with obj.lock, audit():
|
|
99
99
|
async with task.async_transaction():
|
|
@@ -105,7 +105,7 @@ async def install(obj: Obj, postgresexporter: PostgresExporter) -> None:
|
|
|
105
105
|
@click.pass_obj
|
|
106
106
|
@async_command
|
|
107
107
|
async def uninstall(obj: Obj, name: str) -> None:
|
|
108
|
-
"""Uninstall the service."""
|
|
108
|
+
"""Uninstall the service (DEPRECATED)."""
|
|
109
109
|
with obj.lock, audit():
|
|
110
110
|
await impl.drop(_site.SETTINGS, name)
|
|
111
111
|
|
|
@@ -121,6 +121,8 @@ async def start(obj: Obj, name: str, foreground: bool) -> None:
|
|
|
121
121
|
The NAME argument is a local identifier for the postgres_exporter
|
|
122
122
|
service. If the service is bound to a local instance, it should be
|
|
123
123
|
<version>-<name>.
|
|
124
|
+
|
|
125
|
+
Deprecation warning: in a future version, only local instances will be handled.
|
|
124
126
|
"""
|
|
125
127
|
settings = prometheus.get_settings(_site.SETTINGS)
|
|
126
128
|
with obj.lock, audit():
|
|
@@ -140,6 +142,8 @@ async def stop(obj: Obj, name: str) -> None:
|
|
|
140
142
|
The NAME argument is a local identifier for the postgres_exporter
|
|
141
143
|
service. If the service is bound to a local instance, it should be
|
|
142
144
|
<version>-<name>.
|
|
145
|
+
|
|
146
|
+
Deprecation warning: in a future version, only local instances will be handled.
|
|
143
147
|
"""
|
|
144
148
|
settings = prometheus.get_settings(_site.SETTINGS)
|
|
145
149
|
with obj.lock, audit():
|
|
@@ -173,7 +173,7 @@ async def ls(instance: PostgreSQLInstance, output_format: OutputFormat | None) -
|
|
|
173
173
|
partial(
|
|
174
174
|
model_dump,
|
|
175
175
|
context={"pretty": True},
|
|
176
|
-
exclude={"hba_records"
|
|
176
|
+
exclude={"hba_records"},
|
|
177
177
|
),
|
|
178
178
|
)
|
|
179
179
|
|
|
@@ -198,7 +198,7 @@ async def get(
|
|
|
198
198
|
partial(
|
|
199
199
|
model_dump,
|
|
200
200
|
context={"pretty": True},
|
|
201
|
-
exclude={"hba_records"
|
|
201
|
+
exclude={"hba_records"},
|
|
202
202
|
),
|
|
203
203
|
box=None,
|
|
204
204
|
)
|
|
@@ -218,7 +218,7 @@ List instances
|
|
|
218
218
|
$ pglift instance list -o json | jq '.[] | .name, .status'
|
|
219
219
|
"main"
|
|
220
220
|
"running"
|
|
221
|
-
$ pglift instance list --version=
|
|
221
|
+
$ pglift instance list --version=15
|
|
222
222
|
|
|
223
223
|
Get the status of an instance:
|
|
224
224
|
|
|
@@ -235,6 +235,16 @@ Reload, restart:
|
|
|
235
235
|
|
|
236
236
|
$ pglift instance reload
|
|
237
237
|
INFO reloading PostgreSQL configuration for 1\d\/main (re)
|
|
238
|
+
$ pglift instance stop
|
|
239
|
+
INFO stopping PostgreSQL 1\d\/main (re)
|
|
240
|
+
INFO stopping Prometheus postgres_exporter 1\d-main (re)
|
|
241
|
+
$ pglift instance restart
|
|
242
|
+
INFO restarting instance 1\d\/main (re)
|
|
243
|
+
INFO stopping Prometheus postgres_exporter 1\d-main (re)
|
|
244
|
+
INFO restarting PostgreSQL
|
|
245
|
+
INFO stopping PostgreSQL 1\d\/main (re)
|
|
246
|
+
INFO starting PostgreSQL 1\d\/main (re)
|
|
247
|
+
INFO starting Prometheus postgres_exporter 1\d-main (re)
|
|
238
248
|
$ pglift instance restart
|
|
239
249
|
INFO restarting instance 1\d\/main (re)
|
|
240
250
|
INFO stopping Prometheus postgres_exporter 1\d-main (re)
|
|
@@ -251,19 +261,20 @@ Stop, alter, (re)start an instance:
|
|
|
251
261
|
$ pglift instance alter --no-data-checksums
|
|
252
262
|
INFO configuring PostgreSQL
|
|
253
263
|
INFO disabling data checksums
|
|
254
|
-
$ pglift instance alter --prometheus-port=$PGEPORT1
|
|
264
|
+
$ pglift instance alter --prometheus-port=$PGEPORT1 -o json --diff
|
|
255
265
|
INFO configuring PostgreSQL
|
|
256
|
-
INFO starting PostgreSQL 1\d\/main (re)
|
|
257
266
|
INFO reconfiguring Prometheus postgres_exporter 1\d-main (re)
|
|
258
|
-
|
|
267
|
+
{
|
|
268
|
+
"change_state": "changed",
|
|
269
|
+
"diff": [
|
|
270
|
+
"--- $TMPDIR/etc/prometheus/postgres_exporter-1*-main.conf\n+++ $TMPDIR/etc/prometheus/postgres_exporter-1*-main.conf\n@@ -1,2 +1,2 @@\n DATA_SOURCE_NAME=postgresql://prometheus@:*/postgres?*\n-POSTGRES_EXPORTER_OPTS='--web.listen-address :* --log.level info'\n+POSTGRES_EXPORTER_OPTS='--web.listen-address :* --log.level info'" (glob)
|
|
271
|
+
],
|
|
272
|
+
"pending_restart": false
|
|
273
|
+
}
|
|
274
|
+
$ pglift instance alter --state=started --powa-password=p0W@ --diff
|
|
275
|
+
INFO configuring PostgreSQL
|
|
276
|
+
INFO starting PostgreSQL 1\d\/main (re)
|
|
259
277
|
INFO starting Prometheus postgres_exporter 1\d-main (re)
|
|
260
|
-
--- $TMPDIR/etc/prometheus/postgres_exporter-1*-main.conf (glob)
|
|
261
|
-
+++ $TMPDIR/etc/prometheus/postgres_exporter-1*-main.conf (glob)
|
|
262
|
-
@@ -1,2 +1,2 @@
|
|
263
|
-
DATA_SOURCE_NAME=postgresql://prometheus@:*/postgres?host=* (glob)
|
|
264
|
-
*%2Fpostgresql&sslmode=disable (glob)
|
|
265
|
-
-POSTGRES_EXPORTER_OPTS='--web.listen-address :\d+ --log.level info' (re)
|
|
266
|
-
\+POSTGRES_EXPORTER_OPTS='--web.listen-address :\d+ --log.level info' (re)
|
|
267
278
|
--- /dev/null
|
|
268
279
|
+++ $TMPDIR/run/prometheus/1*-main.pid (glob)
|
|
269
280
|
@@ -0,0 +1 @@
|
|
@@ -378,6 +389,10 @@ PostgreSQL configuration
|
|
|
378
389
|
$ pglift --non-interactive pgconf remove fsync
|
|
379
390
|
Error: 'fsync' not found in managed configuration
|
|
380
391
|
[1]
|
|
392
|
+
$ pglift --non-interactive pgconf set Port=9988
|
|
393
|
+
INFO configuring PostgreSQL
|
|
394
|
+
Error: invalid postgresql configuration, Bad line: 'Port = 9988\n'.
|
|
395
|
+
[1]
|
|
381
396
|
$ pglift --non-interactive pgconf remove --dry-run log_statement
|
|
382
397
|
WARNING failed to get data_checksums status: 'Data page checksum version' not found in controldata
|
|
383
398
|
INFO configuring PostgreSQL
|
|
@@ -398,6 +413,7 @@ PostgreSQL configuration
|
|
|
398
413
|
INFO reconfiguring Prometheus postgres_exporter 1\d-main (re)
|
|
399
414
|
INFO restarting Prometheus postgres_exporter 1\d-main (re)
|
|
400
415
|
INFO configuring pgBackRest stanza 'main' for pg1-path=\$TMPDIR\/srv\/pgsql\/1\d\/main\/data (re)
|
|
416
|
+
WARNING Due to 'port' change, the instance may be in an unstable state until it is restarted.
|
|
401
417
|
port: \d+ -> 1234 (re)
|
|
402
418
|
DRY RUN: no changes made
|
|
403
419
|
|
|
@@ -567,7 +583,6 @@ Add and manipulate roles:
|
|
|
567
583
|
"replication": false,
|
|
568
584
|
"connection_limit": 10,
|
|
569
585
|
"valid_until": "2026-01-01T00:00:00Z",
|
|
570
|
-
"validity": "2026-01-01T00:00:00Z",
|
|
571
586
|
"memberships": [
|
|
572
587
|
{
|
|
573
588
|
"role": "pg_monitor"
|
|
@@ -647,7 +662,6 @@ Add and manipulate roles:
|
|
|
647
662
|
"replication": false,
|
|
648
663
|
"connection_limit": 3,
|
|
649
664
|
"valid_until": null,
|
|
650
|
-
"validity": null,
|
|
651
665
|
"memberships": [
|
|
652
666
|
{
|
|
653
667
|
"role": "pg_monitor"
|
|
@@ -703,7 +717,6 @@ Add and manipulate roles:
|
|
|
703
717
|
"replication": false,
|
|
704
718
|
"connection_limit": null,
|
|
705
719
|
"valid_until": null,
|
|
706
|
-
"validity": null,
|
|
707
720
|
"memberships": [],
|
|
708
721
|
"hba_records": []
|
|
709
722
|
},
|
|
@@ -718,7 +731,6 @@ Add and manipulate roles:
|
|
|
718
731
|
"replication": false,
|
|
719
732
|
"connection_limit": 10,
|
|
720
733
|
"valid_until": "2026-01-01T00:00:00Z",
|
|
721
|
-
"validity": "2026-01-01T00:00:00Z",
|
|
722
734
|
"memberships": [
|
|
723
735
|
{
|
|
724
736
|
"role": "pg_monitor"
|
|
@@ -737,7 +749,6 @@ Add and manipulate roles:
|
|
|
737
749
|
"replication": false,
|
|
738
750
|
"connection_limit": null,
|
|
739
751
|
"valid_until": null,
|
|
740
|
-
"validity": null,
|
|
741
752
|
"memberships": [],
|
|
742
753
|
"hba_records": []
|
|
743
754
|
},
|
|
@@ -752,7 +763,6 @@ Add and manipulate roles:
|
|
|
752
763
|
"replication": true,
|
|
753
764
|
"connection_limit": null,
|
|
754
765
|
"valid_until": null,
|
|
755
|
-
"validity": null,
|
|
756
766
|
"memberships": [],
|
|
757
767
|
"hba_records": []
|
|
758
768
|
},
|
|
@@ -767,7 +777,6 @@ Add and manipulate roles:
|
|
|
767
777
|
"replication": false,
|
|
768
778
|
"connection_limit": null,
|
|
769
779
|
"valid_until": null,
|
|
770
|
-
"validity": null,
|
|
771
780
|
"memberships": [
|
|
772
781
|
{
|
|
773
782
|
"role": "pg_monitor"
|
|
@@ -786,7 +795,6 @@ Add and manipulate roles:
|
|
|
786
795
|
"replication": false,
|
|
787
796
|
"connection_limit": null,
|
|
788
797
|
"valid_until": null,
|
|
789
|
-
"validity": null,
|
|
790
798
|
"memberships": [],
|
|
791
799
|
"hba_records": []
|
|
792
800
|
},
|
|
@@ -801,7 +809,6 @@ Add and manipulate roles:
|
|
|
801
809
|
"replication": false,
|
|
802
810
|
"connection_limit": 3,
|
|
803
811
|
"valid_until": null,
|
|
804
|
-
"validity": null,
|
|
805
812
|
"memberships": [
|
|
806
813
|
{
|
|
807
814
|
"role": "pg_monitor"
|
|
@@ -12,9 +12,9 @@ Site settings
|
|
|
12
12
|
$ export PGLIFT_RUN_PREFIX=$TMPDIR/run
|
|
13
13
|
|
|
14
14
|
$ bindir=$TMPDIR/$TESTFILE/bin
|
|
15
|
-
$ mkdir -p $bindir/pgsql/
|
|
16
|
-
$ touch $bindir/pgsql/
|
|
17
|
-
$ chmod +x $bindir/pgsql/
|
|
15
|
+
$ mkdir -p $bindir/pgsql/18/bin
|
|
16
|
+
$ touch $bindir/pgsql/18/bin/pg_ctl
|
|
17
|
+
$ chmod +x $bindir/pgsql/18/bin/pg_ctl
|
|
18
18
|
$ export PGLIFT_POSTGRESQL__BINDIR=$bindir/pgsql/{version}/bin \
|
|
19
19
|
> PGLIFT_POSTGRESQL__AUTH__PASSFILE="null" \
|
|
20
20
|
> PGLIFT_POSTGRESQL__REPLROLE="replication"
|
|
@@ -32,13 +32,23 @@ Site settings
|
|
|
32
32
|
$ export PGLIFT_POWA='{}'
|
|
33
33
|
|
|
34
34
|
$ pglift site-settings --no-defaults -o json \
|
|
35
|
-
> | jq '.postgresql, .pgbackrest, .prometheus, .prefix, .run_prefix'
|
|
35
|
+
> | jq '.patroni, .postgresql, .pgbackrest, .prometheus, .prefix, .run_prefix'
|
|
36
36
|
{
|
|
37
|
-
"
|
|
37
|
+
"execpath": "$TMPDIR/test-help.t/bin/patroni",
|
|
38
|
+
"ctlpath": "$TMPDIR/test-help.t/bin/patronictl",
|
|
39
|
+
"configpath": "$TMPDIR/etc/patroni/{name}.yaml",
|
|
40
|
+
"logpath": "$TMPDIR/log/patroni",
|
|
41
|
+
"pid_file": "$TMPDIR/run/patroni/{name}.pid",
|
|
42
|
+
"postgresql": {
|
|
43
|
+
"passfile": "$TMPDIR/etc/patroni/{name}.pgpass"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
{
|
|
47
|
+
"bindir": "$TMPDIR/test-help.t/bin/pgsql/{version}/bin",
|
|
38
48
|
"versions": [
|
|
39
49
|
{
|
|
40
|
-
"version": "
|
|
41
|
-
"bindir": "$TMPDIR/*/bin/pgsql/
|
|
50
|
+
"version": "18",
|
|
51
|
+
"bindir": "$TMPDIR/*/bin/pgsql/18/bin" (glob)
|
|
42
52
|
}
|
|
43
53
|
],
|
|
44
54
|
"auth": {
|
|
@@ -223,7 +233,7 @@ Instance commands
|
|
|
223
233
|
Initialize a PostgreSQL instance
|
|
224
234
|
|
|
225
235
|
Options:
|
|
226
|
-
--version [17|16|15|14
|
|
236
|
+
--version [18|17|16|15|14] PostgreSQL version; if unspecified,
|
|
227
237
|
determined from site settings or most recent
|
|
228
238
|
PostgreSQL installation available on site.
|
|
229
239
|
--standby-for DSN DSN of primary for streaming replication.
|
|
@@ -363,7 +373,7 @@ Instance commands
|
|
|
363
373
|
List the available instances
|
|
364
374
|
|
|
365
375
|
Options:
|
|
366
|
-
--version [17|16|15|14
|
|
376
|
+
--version [18|17|16|15|14] Only list instances of specified version.
|
|
367
377
|
-o, --output-format [json] Specify the output format.
|
|
368
378
|
--help Show this message and exit.
|
|
369
379
|
$ pglift instance logs --help
|
|
@@ -525,7 +535,7 @@ Instance commands
|
|
|
525
535
|
Required if there is more than one instance on system.
|
|
526
536
|
|
|
527
537
|
Options:
|
|
528
|
-
--version [17|16|15|14
|
|
538
|
+
--version [18|17|16|15|14] PostgreSQL version of the new instance (default
|
|
529
539
|
to site-configured value).
|
|
530
540
|
--name TEXT Name of the new instance (default to old
|
|
531
541
|
instance name).
|
|
@@ -617,7 +627,6 @@ Role commands
|
|
|
617
627
|
make.
|
|
618
628
|
--valid-until VALID_UNTIL Date and time after which the role's
|
|
619
629
|
password is no longer valid.
|
|
620
|
-
--validity VALIDITY DEPRECATED. Use 'valid_until' instead.
|
|
621
630
|
--grant ROLE Grant membership of the given role. (Can be
|
|
622
631
|
used multiple times.)
|
|
623
632
|
--revoke ROLE Revoke membership of the given role. (Can be
|
|
@@ -646,7 +655,6 @@ Role commands
|
|
|
646
655
|
make.
|
|
647
656
|
--valid-until VALID_UNTIL Date and time after which the role's
|
|
648
657
|
password is no longer valid.
|
|
649
|
-
--validity VALIDITY DEPRECATED. Use 'valid_until' instead.
|
|
650
658
|
--in-role ROLE Roles which this role should be a member of.
|
|
651
659
|
(Can be used multiple times.)
|
|
652
660
|
--dry-run Simulate change operations.
|
|
@@ -1012,15 +1020,15 @@ Patroni commands:
|
|
|
1012
1020
|
--help Show this message and exit.
|
|
1013
1021
|
|
|
1014
1022
|
Commands:
|
|
1015
|
-
apply Apply manifest as a Prometheus postgres_exporter.
|
|
1016
|
-
install Install the service for a (non-local) instance.
|
|
1023
|
+
apply Apply manifest as a Prometheus postgres_exporter (DEPRECATED).
|
|
1024
|
+
install Install the service for a (non-local) instance (DEPRECATED).
|
|
1017
1025
|
start Start postgres_exporter service NAME.
|
|
1018
1026
|
stop Stop postgres_exporter service NAME.
|
|
1019
|
-
uninstall Uninstall the service.
|
|
1027
|
+
uninstall Uninstall the service (DEPRECATED).
|
|
1020
1028
|
$ pglift postgres_exporter apply --help
|
|
1021
1029
|
Usage: pglift postgres_exporter apply [OPTIONS]
|
|
1022
1030
|
|
|
1023
|
-
Apply manifest as a Prometheus postgres_exporter.
|
|
1031
|
+
Apply manifest as a Prometheus postgres_exporter (DEPRECATED).
|
|
1024
1032
|
|
|
1025
1033
|
Options:
|
|
1026
1034
|
-f, --file MANIFEST [required]
|
|
@@ -1032,7 +1040,7 @@ Patroni commands:
|
|
|
1032
1040
|
$ pglift postgres_exporter install --help
|
|
1033
1041
|
Usage: pglift postgres_exporter install [OPTIONS] NAME DSN PORT
|
|
1034
1042
|
|
|
1035
|
-
Install the service for a (non-local) instance.
|
|
1043
|
+
Install the service for a (non-local) instance (DEPRECATED).
|
|
1036
1044
|
|
|
1037
1045
|
Options:
|
|
1038
1046
|
--password PASSWORD Connection password.
|
|
@@ -1046,6 +1054,9 @@ Patroni commands:
|
|
|
1046
1054
|
The NAME argument is a local identifier for the postgres_exporter service.
|
|
1047
1055
|
If the service is bound to a local instance, it should be <version>-<name>.
|
|
1048
1056
|
|
|
1057
|
+
Deprecation warning: in a future version, only local instances will be
|
|
1058
|
+
handled.
|
|
1059
|
+
|
|
1049
1060
|
Options:
|
|
1050
1061
|
--foreground Start the program in foreground.
|
|
1051
1062
|
--help Show this message and exit.
|
|
@@ -1057,12 +1068,15 @@ Patroni commands:
|
|
|
1057
1068
|
The NAME argument is a local identifier for the postgres_exporter service.
|
|
1058
1069
|
If the service is bound to a local instance, it should be <version>-<name>.
|
|
1059
1070
|
|
|
1071
|
+
Deprecation warning: in a future version, only local instances will be
|
|
1072
|
+
handled.
|
|
1073
|
+
|
|
1060
1074
|
Options:
|
|
1061
1075
|
--help Show this message and exit.
|
|
1062
1076
|
$ pglift postgres_exporter uninstall --help
|
|
1063
1077
|
Usage: pglift postgres_exporter uninstall [OPTIONS] NAME
|
|
1064
1078
|
|
|
1065
|
-
Uninstall the service.
|
|
1079
|
+
Uninstall the service (DEPRECATED).
|
|
1066
1080
|
|
|
1067
1081
|
Options:
|
|
1068
1082
|
--help Show this message and exit.
|
|
@@ -367,6 +367,6 @@ def test_get_instance(
|
|
|
367
367
|
):
|
|
368
368
|
util.get_instance("foo", None, settings)
|
|
369
369
|
assert [call.args for call in system_lookup.call_args_list] == [
|
|
370
|
-
("foo", "
|
|
371
|
-
("foo", "
|
|
370
|
+
("foo", "15", settings),
|
|
371
|
+
("foo", "18", settings),
|
|
372
372
|
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|