[8.8] Profiling: fix links in Add Data page (#157333) (#157397)

# Backport

This will backport the following commits from `main` to `8.8`:
- [Profiling: fix links in Add Data page
(#157333)](https://github.com/elastic/kibana/pull/157333)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Francesco
Gualazzi","email":"inge4pres@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-05-11T14:29:29Z","message":"Profiling:
fix links in Add Data page (#157333)\n\n## Summary\r\n\r\nAdjust
download links for Universal Profiling host-agent in the Add
Data\r\npage.\r\nThe links need to be updated because of a breaking
change in the\r\nprotocol.\r\n\r\nSigned-off-by: inge4pres
<francesco.gualazzi@elastic.co>","sha":"cec3ee91acd6bcbec9bacce5b671d85fb85c2244","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","backport","release_note:skip","ci:build-cloud-image","ci:cloud-deploy","ci:cloud-redeploy","v8.8.0","v8.9.0"],"number":157333,"url":"https://github.com/elastic/kibana/pull/157333","mergeCommit":{"message":"Profiling:
fix links in Add Data page (#157333)\n\n## Summary\r\n\r\nAdjust
download links for Universal Profiling host-agent in the Add
Data\r\npage.\r\nThe links need to be updated because of a breaking
change in the\r\nprotocol.\r\n\r\nSigned-off-by: inge4pres
<francesco.gualazzi@elastic.co>","sha":"cec3ee91acd6bcbec9bacce5b671d85fb85c2244"}},"sourceBranch":"main","suggestedTargetBranches":["8.8"],"targetPullRequestStates":[{"branch":"8.8","label":"v8.8.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/157333","number":157333,"mergeCommit":{"message":"Profiling:
fix links in Add Data page (#157333)\n\n## Summary\r\n\r\nAdjust
download links for Universal Profiling host-agent in the Add
Data\r\npage.\r\nThe links need to be updated because of a breaking
change in the\r\nprotocol.\r\n\r\nSigned-off-by: inge4pres
<francesco.gualazzi@elastic.co>","sha":"cec3ee91acd6bcbec9bacce5b671d85fb85c2244"}}]}]
BACKPORT-->

Co-authored-by: Francesco Gualazzi <inge4pres@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2023-05-11 11:36:12 -04:00 committed by GitHub
parent 299b39c866
commit c77b43b78e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,6 +39,7 @@ export function NoDataPage({ subTitle }: { subTitle: string }) {
const secretToken = data?.variables.secretToken;
const collectionAgentHostPort = data?.variables.apmServerUrl.replace('https://', '');
const hostAgentVersion = 'v3';
const tabs = [
{
@ -66,7 +67,7 @@ export function NoDataPage({ subTitle }: { subTitle: string }) {
{`helm install --create-namespace -n=universal-profiling universal-profiling-agent \\
--set "projectID=1,secretToken=${secretToken}" \\
--set "collectionAgentHostPort=${collectionAgentHostPort}" \\
--set "image.baseUrl=docker.elastic.co,image.repository=observability,image.name=profiling-agent" \\
--set "version=${hostAgentVersion}" \\
optimyze/pf-host-agent`}
</EuiCodeBlock>
),
@ -104,7 +105,7 @@ optimyze/pf-host-agent`}
<EuiCodeBlock paddingSize="s" isCopyable>
{`docker run --name host-agent --privileged --pid=host -v /etc/machine-id:/etc/machine-id:ro \\
-v /var/run/docker.sock:/var/run/docker.sock -v /sys/kernel/debug:/sys/kernel/debug:ro \\
docker.elastic.co/observability/profiling-agent:stable /root/pf-host-agent \\
docker.elastic.co/observability/profiling-agent:${hostAgentVersion} /root/pf-host-agent \\
-project-id=1 -secret-token=${secretToken} \\
-collection-agent=${collectionAgentHostPort}`}
</EuiCodeBlock>
@ -124,8 +125,7 @@ docker.elastic.co/observability/profiling-agent:stable /root/pf-host-agent \\
}),
content: (
<EuiCodeBlock paddingSize="s" isCopyable>
wget -O pf-host-agent.tgz &quot;https://ela.st/pf-host-agent-amd64&quot; && tar xzf
pf-host-agent.tgz
{`wget -O pf-host-agent.tgz "https://ela.st/pf-host-agent-amd64-${hostAgentVersion}" && tar xzf pf-host-agent.tgz`}
</EuiCodeBlock>
),
},
@ -163,8 +163,11 @@ docker.elastic.co/observability/profiling-agent:stable /root/pf-host-agent \\
'Open the URL below and download the right DEB package for your CPU architecture:',
}),
content: (
<EuiLink target="_blank" href={`https://ela.st/pf-host-agent-linux`}>
https://ela.st/pf-host-agent-linux
<EuiLink
target="_blank"
href={`https://ela.st/pf-host-agent-linux-${hostAgentVersion}`}
>
{`https://ela.st/pf-host-agent-linux-${hostAgentVersion}`}
</EuiLink>
),
},
@ -213,8 +216,11 @@ docker.elastic.co/observability/profiling-agent:stable /root/pf-host-agent \\
'Open the URL below and download the right RPM package for your CPU architecture:',
}),
content: (
<EuiLink target="_blank" href={`https://ela.st/pf-host-agent-linux`}>
https://ela.st/pf-host-agent-linux
<EuiLink
target="_blank"
href={`https://ela.st/pf-host-agent-linux-${hostAgentVersion}`}
>
{`https://ela.st/pf-host-agent-linux-${hostAgentVersion}`}
</EuiLink>
),
},
@ -284,11 +290,17 @@ docker.elastic.co/observability/profiling-agent:stable /root/pf-host-agent \\
},
{
title: i18n.translate('xpack.profiling.tabs.symbols.step3', {
defaultMessage: 'Run:',
defaultMessage:
'Fetch the symbols endpoint from the Cloud console, navigating in the Integrations Server section',
}),
},
{
title: i18n.translate('xpack.profiling.tabs.symbols.step4', {
defaultMessage: 'Run the following command, replacing the placeholders between <>:',
}),
content: (
<EuiCodeBlock paddingSize="s" isCopyable>
{`./symbtool push-symbols executable --url <symb service IP> --api-key {} --help`}
{`./symbtool push-symbols executable --url <symbols endpoint> --api-key <api key> --help`}
</EuiCodeBlock>
),
},