From 6a8b26939c03b138e1d2acaadf8501e99dbdd341 Mon Sep 17 00:00:00 2001 From: hoa ngo Date: Tue, 21 May 2019 07:34:39 +0700 Subject: [PATCH] Kapacitor doc have some problem, see in: https://docs.openstack.org/vitrage/latest/contributor/kapacitor-datasource.html Change-Id: I49ec3c73320a7aa2ae7a5de95ec88305a7b86994 Story: 2005428 Task: 33403 --- doc/source/contributor/kapacitor-datasource.rst | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/doc/source/contributor/kapacitor-datasource.rst b/doc/source/contributor/kapacitor-datasource.rst index 82505d264..9e9975d69 100644 --- a/doc/source/contributor/kapacitor-datasource.rst +++ b/doc/source/contributor/kapacitor-datasource.rst @@ -8,7 +8,7 @@ https://docs.influxdata.com/kapacitor/v1.5/working/alerts/ Installation ------------ -Copy the 'https://github.com/openstack/vitrage/tree/master/vitrage/datasources/kapacitor/auxliary/kapacitor_vitrage.py' script into the Kapacitor servers. +Copy the 'https://raw.githubusercontent.com/openstack/vitrage/master/vitrage/datasources/kapacitor/auxiliary/kapacitor_vitrage.py' script into the Kapacitor servers. .. code-block:: bash @@ -35,10 +35,9 @@ Configuration Run command to define topic -.. code-block:: bash - -$ kapacitor define-topic-handler ./forward_to_vitrage.yaml +.. code:: bash + $ kapacitor define-topic-handler ./forward_to_vitrage.yaml 2. Assign your Task to topic, in Tick script define that alert, add in "alert()" step: @@ -60,7 +59,6 @@ Run command define your task: $ kapacitor define -tick - Vitrage configuration: 1. Add kapacitor to list of datasources in ``/etc/vitrage/vitrage.conf``