Skip to content

Commit

Permalink
[hosts] Add troubleshooting section with info on hosts detected by APM (
Browse files Browse the repository at this point in the history
#4276)

* add troublshooting section

* address feedback from @roshan-elastic

* add to serverless docs

* apply suggestions from code review

Co-authored-by: Mike Birnstiehl <[email protected]>

---------

Co-authored-by: Mike Birnstiehl <[email protected]>
  • Loading branch information
colleenmcginnis and mdbirnstiehl authored Oct 3, 2024
1 parent 065ef9e commit 8b88964
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/en/observability/images/icons/questionInCircle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions docs/en/observability/monitor-infra/analyze-hosts.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -256,3 +256,45 @@ to determine if there is an outage or issue.

[role="screenshot"]
image::images/hosts-dashed-and-missing.png[Screenshot showing dashed lines and missing data]

[discrete]
[[analyze-hosts-troubleshooting]]
== Troubleshooting

////
Troubleshooting topic template:
Title: Brief description of what the user sees/experiences
Content:
1. What the user sees/experiences (error message, UI, behavior, etc)
2. Why it happens
3. How to fix it
////

[discrete]
[[analyze-hosts-troubleshooting-detected-by-apm]]
=== What does _this host has been detected by APM_ mean?

// What the user sees/experiences (error message, UI, behavior, etc)
In the Hosts view, you might see a question mark icon (image:images/icons/questionInCircle.svg[Question mark icon])
before a host name with a tooltip note stating that the host has been detected by APM.
// Why it happens
When a host is detected by APM, but is not collecting full metrics
(for example, through the https://www.elastic.co/docs/current/integrations/system[system integration]),
it will be listed as a host with the partial metrics collected by APM.

// How to fix it
// N/A?

[discrete]
[[analyze-hosts-troubleshooting-fix-host-name]]
// What the user sees/experiences (error message, UI, behavior, etc)
=== I don't recognize a host name and I see a question mark icon next to it

// Why it happens
This could mean that the APM agent has not been configured to use the correct host name.
Instead, the host name might be the container name or the Kubernetes pod name.

// How to fix it
To get the correct host name, you need to set some additional configuration options,
specifically `system.kubernetes.node.name` as described in <<apm-api-kubernetes-data>>.
35 changes: 35 additions & 0 deletions docs/en/serverless/infra-monitoring/analyze-hosts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -266,3 +266,38 @@ Similar to the above scenario, you may want to investigate the time period with
to determine if there is an outage or issue.

![Screenshot showing dashed lines and missing data](../images/hosts-dashed-and-missing.png)

## Troubleshooting

{/*
Troubleshooting topic template:
Title: Brief description of what the user sees/experiences
Content:
1. What the user sees/experiences (error message, UI, behavior, etc)
2. Why it happens
3. How to fix it
*/}

### What does _this host has been detected by APM_ mean?

{/* What the user sees/experiences (error message, UI, behavior, etc) */}
In the Hosts view, you might see a question mark icon (<DocIcon type="questionInCircle" title="Question mark icon" />)
before a host name with a tooltip note stating that the host has been detected by APM.
{/* Why it happens */}
When a host is detected by APM, but is not collecting full metrics
(for example, through the <DocLink slug="/integrations/system">system integration</DocLink>),
it will be listed as a host with the partial metrics collected by APM.

{/* How to fix it */}
{/* N/A? */}

{/* What the user sees/experiences (error message, UI, behavior, etc) */}
### I don't recognize a host name and I see a question mark icon next to it

{/* Why it happens */}
This could mean that the APM agent has not been configured to use the correct host name.
Instead, the host name might be the container name or the Kubernetes pod name.

{/* How to fix it */}
To get the correct host name, you need to set some additional configuration options,
specifically `system.kubernetes.node.name` as described in <DocLink slug="/serverless/observability/apm-server-api" section="kubernetes-data">Kubernetes data</DocLink>.

0 comments on commit 8b88964

Please sign in to comment.