Home / Keptn v1 Docs / Release 0.15.x / Reference / Files / sli.yaml
The sli.yaml file contains definitions of the Service-Level Indicators (SLIs) defined for your Keptn installation. Each SLI is a defined quantitative measure of some aspects of the service level. The query for an SLI is provider/tool-dependent; therefore, each SLI-provider relies on a specific SLI configuration. The SLI configuration contains a list of indicators, each of which always consists of a name and the provider-specific query.
Please follow the links to the provider-specific SLIs:
Important: In the following commands,
the value of the resourceUri
must specify the SLI-provider
that can fetch the declared SLIs.
For Dynatrace, the value of the resourceUri
must be: dynatrace/sli.yaml
.
To add an SLI configuration to a service, use the keptn add-resource command:
To add an SLI configuration to a stage, use the keptn add-resource command:
Note: This SLI configuration is applied for all services in this stage.
To add an SLI configuration to a project, use the keptn add-resource command:
Note: This SLI configuration is applied for all services in all stages of this project.
Example of multiple SLI configurations:
Let’s assume, we add the following SLI configurations to a project, stage, and service:
If an evaluation of a service gets triggered, the following SLI configuration is used: