-
Notifications
You must be signed in to change notification settings - Fork 880
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Graphite metric provider documentation
Signed-off-by: Mike Ball <[email protected]>
- Loading branch information
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Graphite Metrics | ||
|
||
A [Graphite](https://graphiteapp.org/) query can be used to obtain measurements for analysis. | ||
|
||
```yaml | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: AnalysisTemplate | ||
metadata: | ||
name: success-rate | ||
spec: | ||
args: | ||
- name: service-name | ||
metrics: | ||
- name: success-rate | ||
interval: 5m | ||
# Note that the Argo Rollouts Graphite metrics provider returns results as float64s with 6 decimal places. | ||
successCondition: result >= 90.000000 | ||
failureLimit: 3 | ||
provider: | ||
graphite: | ||
address: http://graphite.example.com:9090 | ||
query: | | ||
target=summarize( | ||
asPercent( | ||
sumSeries( | ||
stats.timers.httpServerRequests.app.{{args.service-name}}.exception.*.method.*.outcome.{CLIENT_ERROR,INFORMATIONAL,REDIRECTION,SUCCESS}.status.*.uri.*.count | ||
), | ||
sumSeries( | ||
stats.timers.httpServerRequests.app.{{args.service-name}}.exception.*.method.*.outcome.*.status.*.uri.*.count | ||
) | ||
), | ||
'5min', | ||
'avg' | ||
) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters