Cannot remove mysql from PMM; help docs incorrect

Description

The 'help' shows "flags" and "service-name" as optional arguments. According to the help, typing 'pmm-admin remove mysql' should remove it but it does not.

[root@mysql3-T1 ~]# pmm-admin remove pmm-admin: error: required argument 'service-type' not provided, try --help [root@mysql3-T1 ~]# pmm-admin remove mysql params not found [root@mysql3-T1 ~]# pmm-admin remove --help usage: pmm-admin remove [<flags>] <service-type> [<service-name>] Remove Service from monitoringFlags: -h, --help Show context-sensitive help (also try --help-long and --help-man) --version Show application version --server-url=SERVER-URL PMM Server URL in `https://username:password@pmm-server-host/` format --server-insecure-tls Skip PMM Server TLS certificate validation --debug Enable debug logging --trace Enable trace logging (implies debug) --json Enable JSON output --service-id=SERVICE-ID Service IDPositional arguments: <service-type> Service type, one of: mysql, mongodb, postgresql, proxysql [<service-name>] Service name [root@mysql3-T1 ~] # pmm-admin remove mysql params not found

How to test

None

How to document

None

Smart Checklist

Activity

Matthew Boehm January 9, 2020 at 8:28 PM

"service-name" appears to be REQUIRED even though help says it is optional.

# pmm-admin remove mysql mysql3-T1-mysql Service removed.

Details

Assignee

Reporter

Priority

Needs QA

Yes

Needs Doc

Yes

Affects versions

Smart Checklist

Created January 9, 2020 at 8:27 PM
Updated March 6, 2024 at 4:59 AM

Flag notifications