From 86a35fba171c4d5dfd1b558fef445653111a0da4 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 3 Mar 2020 07:26:02 -0600 Subject: [PATCH] mgr/orch: add apply grafana to CLI Signed-off-by: Sage Weil --- src/pybind/mgr/orchestrator/module.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/pybind/mgr/orchestrator/module.py b/src/pybind/mgr/orchestrator/module.py index bcc43f20bd35..27688033161b 100644 --- a/src/pybind/mgr/orchestrator/module.py +++ b/src/pybind/mgr/orchestrator/module.py @@ -844,6 +844,19 @@ Usage: self._orchestrator_wait([completion]) return HandleCommandResult(stdout=completion.result_str()) + @_cli_write_command( + 'orch apply grafana', + 'name=placement,type=CephString,n=N,req=false', + 'Scale grafana service') + def _apply_grafana(self, placement=None): + spec = ServiceSpec( + 'grafana', + placement=PlacementSpec.from_strings(placement), + ) + completion = self.apply_grafana(spec) + self._orchestrator_wait([completion]) + return HandleCommandResult(stdout=completion.result_str()) + @_cli_write_command( 'orch apply node-exporter', 'name=placement,type=CephString,n=N,req=false', -- 2.47.3