From: Sage Weil Date: Tue, 3 Mar 2020 13:26:02 +0000 (-0600) Subject: mgr/orch: add apply grafana to CLI X-Git-Tag: v15.1.1~146^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=86a35fba171c4d5dfd1b558fef445653111a0da4;p=ceph.git mgr/orch: add apply grafana to CLI Signed-off-by: Sage Weil --- 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',