From 51fde08069b3b64b9a4d440e2475448f84b64f0d Mon Sep 17 00:00:00 2001 From: Chris Sibbitt Date: Tue, 6 Dec 2022 12:44:53 -0500 Subject: [PATCH 1/2] Update README to reflect new params file changes Should merge with https://github.com/infrawatch/osp-observability-ansible/pull/18 --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3aa5d55..e7b6e69 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,18 @@ openstack observability discover --stack-name=standalone Deploy prometheus: ``` -echo "prometheus_remote_write: ['http://someurl', 'http://otherurl']" > test_params.yaml -openstack observability setup prometheus_agent --config ./test_params.yaml +$ cat test_params.yaml +prometheus_remote_write: + stf: + url: https://default-prometheus-proxy-service-telemetry.apps.FAKE.ocp.cluster/api/v1/write + basic_user: internal + basic_pass: Pl4iNt3xTp4a55 + ca_cert: | + -----BEGIN CERTIFICATE----- + ABCDEFGHIJKLMNOPQRSTUVWXYZ + -----END CERTIFICATE----- + not-stf: + url: http://prometheus-rw.example.com/api/v1/write + +$ openstack observability setup prometheus_agent --config ./test_params.yaml ``` From 7ba473e706523c5d6678a6ebf8e86600184f7b59 Mon Sep 17 00:00:00 2001 From: Chris Sibbitt Date: Tue, 6 Dec 2022 12:48:07 -0500 Subject: [PATCH 2/2] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e7b6e69..d408794 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ sudo ln -s `pwd`/osp-observability-ansible/roles/spawn_container /usr/share/ansi sudo ln -s `pwd`/osp-observability-ansible/roles/osp_observability /usr/share/ansible/roles/osp_observability ``` +### Enable collectd write_prometheus Create a THT environment file to enable the write_prometheus plugin for the collectd service. Then redeploy your overcloud and include this new file: ``` @@ -44,6 +45,7 @@ parameter_defaults: EOF ``` +### Discover endpoints After deployment of your cloud you can discover endpoints available for scraping: ``` @@ -51,7 +53,8 @@ source stackrc openstack observability discover --stack-name=standalone ``` -Deploy prometheus: +### Deploy prometheus: +Create a config file and run the setup command ``` $ cat test_params.yaml