Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

docs: Add initial troubleshooting guide to documentation #726

Merged
merged 4 commits into from
Mar 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ If you are planning to upgrade to dynatrace-service version `0.18.0` or newer fr
- [Forwarding events from Keptn to Dynatrace](documentation/event-forwarding-to-dynatrace.md)
- [Forwarding problem notifications from Dynatrace to Keptn](documentation/problem-forwarding-to-keptn.md)
- [Automatic onboarding of monitored service entities](documentation/auto-service-onboarding.md)
- [Troubleshooting common problems](documentation/troubleshooting.md)
- Other topics
- [Additional installation options](documentation/additional-installation-options.md)
- [Dynatrace API token scopes](documentation/dynatrace-api-token-scopes.md)
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/images/dashboard-not-found.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
84 changes: 84 additions & 0 deletions documentation/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Troubleshooting common problems
The following subsections outline the solutions to some common problems that may occur when first setting up a Keptn project to use the dynatrace-service.

## Evaluation succeeds but no evaluation was performed

Evaluation succeeds but the shipyard-controller reports:
> `no evaluation performed by lighthouse because no SLI-provider configured for project dashboard-config-test`

![No evaluation performed by lighthouse](images/no-evaluation-performed-by-lighthouse.png)

Likely cause:
- An evaluation was triggered but Keptn is not configured to use Dynatrace as the monitoring provider

Suggested solution:
- Run `keptn configure monitoring dynatrace --project <project-name>` to configure Dynatrace as the monitoring provider

## Configure monitoring fails

Keptn CLI reports:
> `Configure monitoring failed. dynatrace-service: cannot handle event: could not get configuration: could not find resource: 'dynatrace/dynatrace.conf.yaml' of project 'dashboard-config-test'`

![Configure monitoring failed](images/configure-monitoring-failed.png)

Likely cause:
- The CLI command `keptn configure monitoring dynatrace --project <project-name>` was run before adding a `dynatrace/dynatrace.conf.yaml` to the Keptn project

Suggested solution:
- Create a `dynatrace/dynatrace.conf.yaml` file on the project level. See [Configuring the dynatrace-service with `dynatrace/dynatrace.conf.yaml`](dynatrace-conf-yaml-file.md).
- Following this, re-run `keptn configure monitoring dynatrace --project <project-name>`

## Evaluation fails: Could not retrieve any SLI results

Evaluation fails but the shipyard-controller reports:
> `could not retrieve any SLI results`

![Could not retrieve any SLI results](images/could-not-retrieve-any-sli-results.png)

Likely cause:
- SLIs and SLOs should be defined using YAML files but no SLOs have been defined i.e. no `slo.yaml` file can be found

Suggested solution:
- If SLIs and SLOs should be defined using YAML files, define SLOs by creating a `slo.yaml` file, or
- If SLIs and SLOs should be sourced from a dashboard, add a `dashboard` entry to the `dynatrace/dynatrace.conf.yaml` configuration file
arthurpitman marked this conversation as resolved.
Show resolved Hide resolved

## Evaluation fails: Dynatrace Metrics API returned zero data points

Evaluation fails and the shipyard-controller reports:
> `no evaluation performed by lighthouse because SLI failed with message Dynatrace Metrics API returned zero data points...`

![Dynatrace Metrics API returned zero data points](images/dynatrace-metrics-api-returned-zero-data-points.png)

Likely cause:
- No data is available during the evaluation timeframe

Suggested solution:
- Check the availability of data for the evaluation timeframe, e.g. using the Data Explorer in the Dynatrace tenant

## Evaluation fails: Could not query Dynatrace dashboard for SLIs: ...could not find a matching dashboard name

Evaluation fails and the shipyard-controller reports:
> `could not query Dynatrace dashboard for SLIs: error while processing dashboard config '' - could not find a matching dashboard name - e.g. KQG;project=<project>;service=<service>;stage=<stage>`

![Could not find a matching dashboard](images/could-not-find-a-matching-dashboard.png)

Likely cause:
- Dynatrace-service is configured to query a dashboard for SLIs (i.e. `dynatrace/dynatrace.conf.yaml` contains `dashboard: query`) but no dashboard named with the pattern `KQG;project=<project>;service=<service>;stage=<stage>` is available

Suggested solution:
- If SLIs and SLOs should be sourced from a dashboard, create a dashboard named with the pattern `KQG;project=<project>;service=<service>;stage=<stage>` in the Dynatrace tenant, or
- If SLIs and SLOs should be defined using YAML files, remove the `dashboard: query` entry from `dynatrace/dynatrace.conf.yaml`

## Evaluation fails: Could not query Dynatrace dashboard for SLIs: ...Dashboard "..." not found

Evaluation fails and the shipyard-controller reports:
> `could not query Dynatrace dashboard for SLIs: error while processing dashboard config '12345678-1234-1234-1234-12345678abcd' - Dynatrace API error (404): Dashboard 12345678-1234-1234-1234-12345678abcd not found`

![Dashboard not found](images/dashboard-not-found.png)

Likely cause:
- Dynatrace-service is configured to query a specific dashboard for SLIs (i.e. `dynatrace/dynatrace.conf.yaml` contains `dashboard: <dashboard-id>`) but no dashboard with the specified ID is available

Suggested solution:
- If SLIs and SLOs should be sourced from a dashboard, ensure `dynatrace/dynatrace.conf.yaml` contains a `dashboard: <dashboard-id>` entry with the correct dashboard ID, or
- If SLIs and SLOs should be defined using YAML files, remove the `dashboard: <dashboard-id>` entry from `dynatrace/dynatrace.conf.yaml`