Skip to content

Instantly share code, notes, and snippets.

@fipar
Created March 11, 2017 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fipar/8777e376e1f8bdc17944ab2029fa7779 to your computer and use it in GitHub Desktop.
Save fipar/8777e376e1f8bdc17944ab2029fa7779 to your computer and use it in GitHub Desktop.
unknown flag in pmm-admin add mongodb when attempting to use example from the manual
vagrant@mongodb-server:~$ sudo pmm-admin add mongodb --replset repl1 --cluster cluster1 --nodetype mongod
Error: unknown flag: --replset
Usage:
pmm-admin add mongodb [name] [flags]
Examples:
pmm-admin add mongodb
pmm-admin add mongodb --cluster bare-metal
Flags:
--cluster string cluster name
--uri string MongoDB URI, format: [mongodb://][user:pass@]host[:port][/database][?options] (default "localhost:27017")
Global Flags:
-c, --config-file string PMM config file (default "/usr/local/percona/pmm-client/pmm.yml")
--service-port uint16 service port
unknown flag: --replset
vagrant@mongodb-server:~$ sudo pmm-admin --version
1.1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment