You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This experiment consists of two [tasks](../../getting-started/concepts.md#iter8-experiment), namely, [custommetrics](../../user-guide/tasks/custommetrics.md), and [assess](../../user-guide/tasks/assess.md).
51
51
52
-
The `custommetrics` task in this experiment [works](../../user-guide/tasks/custommetrics.md#how-it-works) by downloading a [provider template](../../user-guide/tasks/custommetrics.md#provider-template) named `istio-prom` from a URL, [substituting the template variables with values](../../user-guide/tasks/custommetrics.md#computing-variable-values), using the resulting [provider spec](../../user-guide/tasks/custommetrics.md#provider-spec) to query Prometheus for metrics, and [processing the response from Prometheus](../../user-guide/tasks/custommetrics.md#processing-response) to extract the metric values. Metrics defined by this template include `error-rate` and `latency-mean`; the [Prometheus labels](https://istio.io/latest/docs/reference/config/metrics/#labels) used by this template are stored in `labels`; all the metrics and variables associated with this template are [documented as part of the template](https://raw.githubusercontent.com/iter8-tools/hub/iter8-0.13.0/templates/custommetrics/istio-prom.tpl).
52
+
The `custommetrics` task in this experiment [works](../../user-guide/tasks/custommetrics.md#how-it-works) by downloading a [provider template](../../user-guide/tasks/custommetrics.md#provider-template) named `istio-prom` from a URL, [substituting the template variables with values](../../user-guide/tasks/custommetrics.md#computing-variable-values), using the resulting [provider spec](../../user-guide/tasks/custommetrics.md#provider-spec) to query Prometheus for metrics, and [processing the response from Prometheus](../../user-guide/tasks/custommetrics.md#processing-response) to extract the metric values. Metrics defined by this template include `error-rate` and `latency-mean`; the [Prometheus labels](https://istio.io/latest/docs/reference/config/metrics/#labels) used by this template are stored in `labels`; all the metrics and variables associated with this template are [documented as part of the template](https://raw.githubusercontent.com/iter8-tools/hub/main/templates/custommetrics/istio-prom.tpl).
53
53
54
54
The [assess](../../user-guide/tasks/assess.md) task verifies if the app satisfies the specified SLOs: i) there are no errors, and ii) the mean latency of the app does not exceed 100 msec.
@@ -109,7 +109,7 @@ The `ProviderSpec` and `Metric` data structures together supply Iter8 with all t
109
109
Rather than supplying [provider specs](#provider-spec) directly, Iter8 enables users to supply one or more [Golang templates](https://pkg.go.dev/text/template) for provider specs. Iter8 combines the provider templates with [values](#computing-variable-values), in order to generate [provider specs](#provider-spec) in YAML format, and uses them to query for the metrics.
110
110
111
111
Example providers specs:
112
-
*[istio-prom](https://raw.githubusercontent.com/iter8-tools/hub/iter8-0.13.0/templates/custommetrics/istio-prom.tpl) for [Istio's Prometheus plugin](https://istio.io/latest/docs/ops/integrations/prometheus/)
112
+
*[istio-prom](https://raw.githubusercontent.com/iter8-tools/hub/main/templates/custommetrics/istio-prom.tpl) for [Istio's Prometheus plugin](https://istio.io/latest/docs/ops/integrations/prometheus/)
113
113
114
114
In order to create [provider templates](#provider-template) and use them in experiments, it is necessary to have a clear understanding of how variable values are computed, and how the response from the database is processed by Iter8. We describe these steps next.
115
115
@@ -128,7 +128,7 @@ Variable values are configured explicitly by the user during experiment launch.
0 commit comments