aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/deploy/day2_configs/prometheus
diff options
context:
space:
mode:
authorSrivahni <srivahni.chivukula@intel.com>2019-06-21 12:45:49 -0700
committerSrivahni <srivahni.chivukula@intel.com>2019-06-21 13:52:53 -0700
commite8f46636aa34ed316a04e6619780b0054bdca646 (patch)
tree28df6096e72fc30d920ca62c605787770a196d6d /vnfs/DAaaS/deploy/day2_configs/prometheus
parent2da240553b8a56e2913be4e4c2ef8de9a8dcff31 (diff)
Day2 config to remove remote_read and remote_write
Issue-ID: ONAPARC-393 Signed-off-by: Srivahni <srivahni.chivukula@intel.com> Change-Id: Iee64b1dfbe35b14bd2fc93a55790e5fb504b9b68
Diffstat (limited to 'vnfs/DAaaS/deploy/day2_configs/prometheus')
-rw-r--r--vnfs/DAaaS/deploy/day2_configs/prometheus/README.txt11
-rw-r--r--vnfs/DAaaS/deploy/day2_configs/prometheus/remove_remote_read.json1
-rw-r--r--vnfs/DAaaS/deploy/day2_configs/prometheus/remove_remote_write.json1
3 files changed, 12 insertions, 1 deletions
diff --git a/vnfs/DAaaS/deploy/day2_configs/prometheus/README.txt b/vnfs/DAaaS/deploy/day2_configs/prometheus/README.txt
index 99b63fac..6f308299 100644
--- a/vnfs/DAaaS/deploy/day2_configs/prometheus/README.txt
+++ b/vnfs/DAaaS/deploy/day2_configs/prometheus/README.txt
@@ -1,7 +1,16 @@
-This day2 config adds a remote_write to existing config
+1. Day2 config to add a remote_write to existing config
Assuming initial/day0 config in namespace "edge1" and helm release name as "cp" (helm install -n cp collection/ --namespace=edge1)
Run below command to apply day2 config
kubectl patch --namespace=edge1 prometheus cp-prometheus-prometheus -p "$(cat add_remote_write.yaml)" --type=merge
+
+2. Day2 config to remove remote_read and remote_write from existing config
+
+Assuming initial/day0 config in namespace "edge1" and helm release name as "cp" (helm install -n cp collection/ --namespace=edge1)
+
+Run below commands to apply day2 config
+
+To remove remote_read -----> kubectl patch -n edge1 prometheus cp-prometheus-prometheus --type=json -p="$(cat remove_remote_read.json)"
+To remove remote_write ----> kubectl patch -n edge1 prometheus cp-prometheus-prometheus --type=json -p="$(cat remove_remote_write.json)"
diff --git a/vnfs/DAaaS/deploy/day2_configs/prometheus/remove_remote_read.json b/vnfs/DAaaS/deploy/day2_configs/prometheus/remove_remote_read.json
new file mode 100644
index 00000000..efae942f
--- /dev/null
+++ b/vnfs/DAaaS/deploy/day2_configs/prometheus/remove_remote_read.json
@@ -0,0 +1 @@
+[{"op": "remove","path": "/spec/remoteRead"}]
diff --git a/vnfs/DAaaS/deploy/day2_configs/prometheus/remove_remote_write.json b/vnfs/DAaaS/deploy/day2_configs/prometheus/remove_remote_write.json
new file mode 100644
index 00000000..ed75c74e
--- /dev/null
+++ b/vnfs/DAaaS/deploy/day2_configs/prometheus/remove_remote_write.json
@@ -0,0 +1 @@
+[{"op": "remove","path": "/spec/remoteWrite"}]