Skip to content
Snippets Groups Projects
Commit 6ab6b19a authored by Michele Tartara's avatar Michele Tartara
Browse files

Use dcName in mon-collector


Instead of manually specify the name of the data collectors in mon-collector,
just use the dcName field each of them exports.

Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent 4fe04580
No related branches found
No related tags found
No related merge requests found
......@@ -33,10 +33,10 @@ import qualified Ganeti.DataCollectors.InstStatus as InstStatus
-- | Supported binaries.
personalities :: PersonalityList Options
personalities = [ ("drbd", (Drbd.main, Drbd.options, Drbd.arguments,
"gathers and displays DRBD statistics in JSON\
\ format"))
, ("inst-status-xen", (InstStatus.main, InstStatus.options,
personalities = [ (Drbd.dcName, (Drbd.main, Drbd.options, Drbd.arguments,
"gathers and displays DRBD statistics in JSON\
\ format"))
, (InstStatus.dcName, (InstStatus.main, InstStatus.options,
InstStatus.arguments,
"gathers and displays the status of the\
\ instances in JSON format"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment