Skip to content

Commit

Permalink
profiling: update DEB/RPM deployment instructions (#162157)
Browse files Browse the repository at this point in the history
## 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 <[email protected]>
  • Loading branch information
inge4pres authored Aug 1, 2023
1 parent a2e4279 commit 46d8346
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/profiling/public/views/no_data_view/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ docker.elastic.co/observability/profiling-agent:${hostAgentVersion} /root/pf-hos
}),
content: (
<EuiCodeBlock paddingSize="s" isCopyable>
{`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`}
</EuiCodeBlock>
),
},
Expand Down Expand Up @@ -264,7 +264,7 @@ docker.elastic.co/observability/profiling-agent:${hostAgentVersion} /root/pf-hos
}),
content: (
<EuiCodeBlock paddingSize="s" isCopyable>
{`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`}
</EuiCodeBlock>
),
},
Expand Down
6 changes: 3 additions & 3 deletions x-pack/plugins/profiling/server/lib/setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
* Check if ES setup is done

curl -H "content-type: application/json" -u <user:pass> \
-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 <user:pass> -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 <user:pass> \
-XGET "http://localhost:5601/api/profiling/v1/setup/has_data"
-XGET "http://localhost:5601/internal/profiling/setup/has_data"


### Testing in Cloud
Expand Down

0 comments on commit 46d8346

Please sign in to comment.