Created
September 27, 2019 14:03
-
-
Save alexamies/4978767b98e21f0b10073c9f0d249649 to your computer and use it in GitHub Desktop.
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
{ | |
"combiner": "OR", | |
"conditions": [ | |
{ | |
"conditionAbsent": { | |
"aggregations": [ | |
{ | |
"alignmentPeriod": "60s", | |
"crossSeriesReducer": "REDUCE_PERCENTILE_50", | |
"perSeriesAligner": "ALIGN_DELTA" | |
} | |
], | |
"duration": "180s", | |
"filter": "group.id=6417052680653164496 AND resource.type=\"gce_instance\" AND metric.type=\"compute.googleapis.com/instance/cpu/usage_time\"", | |
"trigger": { | |
"count": 1 | |
} | |
}, | |
"displayName": "All timeseries are absent", | |
}, | |
{ | |
"conditionThreshold": { | |
"aggregations": [ | |
{ | |
"alignmentPeriod": "60s", | |
"perSeriesAligner": "ALIGN_DELTA", | |
"crossSeriesReducer": "REDUCE_COUNT" | |
} | |
], | |
"comparison": "COMPARISON_LT", | |
"duration": "180s", | |
"filter": "group.id=6417052680653164496 AND metric.type=\"compute.googleapis.com/instance/cpu/usage_time\" AND resource.type=\"gce_instance\"", | |
"thresholdValue": 3, | |
"trigger": { | |
"count": 1 | |
} | |
}, | |
"displayName": "One of the timeseries is absent", | |
} | |
], | |
"displayName": "Absence policy", | |
"documentation": { | |
"content": "The timeseries data is absent", | |
"mimeType": "text/markdown" | |
}, | |
"enabled": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment