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

Commit

Permalink
docs: Update documentation for 0.24.0 release (#941)
Browse files Browse the repository at this point in the history
* Document changes in Metrics v2 and Data Explorer processing

Signed-off-by: Arthur Pitman <[email protected]>

* Add explicit Keptn compatibility information

Signed-off-by: Arthur Pitman <[email protected]>

* Update images

Signed-off-by: Arthur Pitman <[email protected]>

* Revert "Add explicit Keptn compatibility information"

This reverts commit 616597c.

Signed-off-by: Arthur Pitman <[email protected]>

Signed-off-by: Arthur Pitman <[email protected]>
  • Loading branch information
arthurpitman authored Oct 25, 2022
1 parent e32dd8a commit fc3e1f3
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
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.
22 changes: 19 additions & 3 deletions documentation/slis-via-dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,15 @@ As dashboards currently do not offer a tile for *security problems*, the only wa
The following dashboard tile types are supported:


### Data explorer tiles
### Data Explorer tiles

Data explorer tiles must only include a single query (i.e., one metric) with the unit and resolution set to `auto` (the default setting). Furthermore, queries are limited to a maximum of 100 results.
Data Explorer tiles may be configured using either the Build or Code tab. In both cases tiles must only include a single query, i.e., one metric, which is limited to a maximum of 100 metric series results. If a tile does produce more than one metric series, a separate SLO is created for each with the dimension values being appended to the SLO name.

To make it easy to define SLOs using Data Explorer tiles, pass and warning criteria may be specified by adding visual thresholds directly to the tile rather than using pass and warn criteria in the tile's title. If thresholds and pass and warn criteria have been specified, the thresholds will be ignored.
To make it easy to define SLOs using Data Explorer tiles, pass and warning criteria as well as units and resolution may be specified directly in the UI using the tile properties.

#### Pass warning criteria

Pass and warn criteria can be specified by adding visual thresholds directly to the tile rather than using pass and warn criteria in the tile's title. If thresholds and pass and warn criteria have been specified, the thresholds will be ignored.

Pass-warn-fail and fail-warn-pass configurations are supported. In both cases, three thresholds must be added using strictly monotonically increasing values and colors from the pre-defined color palette:

Expand Down Expand Up @@ -197,6 +201,18 @@ warning:
- ">=274877906944"
```

#### Customizing units

To create SLOs with an alternate unit, select it in the visualization configuration of the query in the tile. The thresholds or pass and warning criteria must be defined in the same units. For example, to create a SLO for service response time in milliseconds, configure the tile as follows:

![Data Explorer units - builtin:service.response.time in milliseconds](images/data-explorer-units-service-response-time.png "Data Explorer units - builtin:service.response.time in milliseconds")

#### Specifying resolution

The resolution of the data queried from the Metrics v2 API may be set using the Resolution setting of the tile. In all cases, the dynatrace-service will attempt to obtain a single value by setting `resolution=Inf` if possible or applying a `:fold()` transformation. An error is produced if multiple values are still returned, in this instance please modify the query, e.g. using the Code tab of the Data Explorer.

![Data Explorer resolution - builtin:service.response.time 1 hour resolution](images/data-explorer-resolution-service-response-time.png "Data Explorer resolution - builtin:service.response.time 1 hour resolution")

### Custom chart tiles

Each custom chart tile may only contain a single series. Furthermore, the series may only contain zero or one *dimensions* and optionally a single *filter*.
Expand Down
9 changes: 7 additions & 2 deletions documentation/slis-via-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,14 @@ indicators:
```


## Other sorts of SLI definitions
## Supported SLI definition types

By default, the dynatrace-service queries metrics using the [Metrics API v2](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/). However, by prefixing the SLI definition, other Dynatrace endpoints may be targeted. These SLI definitions have the form `<PREFIX>;<QUERY>` where `<QUERY>` is the set of parameters that should be passed to the endpoint,
By default, the dynatrace-service queries metrics using the [Metrics v2 API](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/). However, by prefixing the SLI definition, other Dynatrace endpoints may be targeted. These SLI definitions have the form `<PREFIX>;<QUERY>` where `<QUERY>` is the set of parameters that should be passed to the endpoint.


### Dynatrace Metrics v2

Metrics v2 queries must specify a [`metricSelector`](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/metric-selector) which can also include transformations. In addition, `entitySelector`, `resolution` and `mzSelector` parameters are supported. If a query returns multiple values, the dynatrace-service will attempt to set `resolution=Inf` or apply a `:fold()` transformation to obtain a single value.


### Dynatrace SLO definitions (prefix: `SLO`)
Expand Down

0 comments on commit fc3e1f3

Please sign in to comment.