From 46d834627d6d6eb6ff17d8ab2ef504b80df2a60e Mon Sep 17 00:00:00 2001 From: Francesco Gualazzi Date: Tue, 1 Aug 2023 17:30:44 +0200 Subject: [PATCH] profiling: update DEB/RPM deployment instructions (#162157) ## Summary Update the configuration file paths for DEB/RPM instructions in "Add Data" page, using the new values distributed in the packages. Signed-off-by: inge4pres --- .../plugins/profiling/public/views/no_data_view/index.tsx | 4 ++-- x-pack/plugins/profiling/server/lib/setup/README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/x-pack/plugins/profiling/public/views/no_data_view/index.tsx b/x-pack/plugins/profiling/public/views/no_data_view/index.tsx index 66f5fc9afcbc4..e982e4d53e308 100644 --- a/x-pack/plugins/profiling/public/views/no_data_view/index.tsx +++ b/x-pack/plugins/profiling/public/views/no_data_view/index.tsx @@ -211,7 +211,7 @@ docker.elastic.co/observability/profiling-agent:${hostAgentVersion} /root/pf-hos }), content: ( - {`echo -e "project-id 1\nsecret-token ${secretToken}\ncollection-agent ${collectionAgentHost}" | sudo tee -a /etc/prodfiler/prodfiler.conf`} + {`echo -e "project-id 1\nsecret-token ${secretToken}\ncollection-agent ${collectionAgentHost}" | sudo tee -a /etc/Elastic/universal-profiling/pf-host-agent.conf`} ), }, @@ -264,7 +264,7 @@ docker.elastic.co/observability/profiling-agent:${hostAgentVersion} /root/pf-hos }), content: ( - {`echo -e "project-id 1\nsecret-token ${secretToken}\ncollection-agent ${collectionAgentHost}" | sudo tee -a /etc/prodfiler/prodfiler.conf`} + {`echo -e "project-id 1\nsecret-token ${secretToken}\ncollection-agent ${collectionAgentHost}" | sudo tee -a /etc/Elastic/universal-profiling/pf-host-agent.conf`} ), }, diff --git a/x-pack/plugins/profiling/server/lib/setup/README.md b/x-pack/plugins/profiling/server/lib/setup/README.md index cf72b0ec7c650..b1eb7dc241075 100644 --- a/x-pack/plugins/profiling/server/lib/setup/README.md +++ b/x-pack/plugins/profiling/server/lib/setup/README.md @@ -5,17 +5,17 @@ * Check if ES setup is done curl -H "content-type: application/json" -u \ - -XGET "http://localhost:5601/api/profiling/v1/setup/es_resources" + -XGET "http://localhost:5601/internal/profiling/setup/es_resources" * Apply the ES setup (mappings + Fleet policy) curl -H "content-type: application/json" -u -H "kbn-xsrf: reporting" \ - -XPOST "http://localhost:5601/api/profiling/v1/setup/es_resources" + -XPOST "http://localhost:5601/internal/profiling/setup/es_resources" * check data has been ingested curl -H "content-type: application/json" -u \ - -XGET "http://localhost:5601/api/profiling/v1/setup/has_data" + -XGET "http://localhost:5601/internal/profiling/setup/has_data" ### Testing in Cloud