If this turns out to be a different issue I’ll open a separate thread.
Turns out the new ‘view json’ converts to the correct values for the API to recognize, but our existing templates are not compatible with 5.0.1. Below is a simplified version of a template payload that is failing:
{
"dashboard": {
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"description": "Health for the AWS hosted elasticsearch clusters",
"editable": true,
"gnetId": null,
"graphTooltip": 1,
"hideControls": false,
"id": null,
"links": [],
"rows": [
{
"collapse": false,
"height": 237,
"panels": [
{
"alert": {
"conditions": [
{
"evaluator": {
"params": [
0
],
"type": "gt"
},
"operator": {
"type": "and"
},
"query": {
"params": [
"B",
"15m",
"now"
]
},
"reducer": {
"params": [],
"type": "avg"
},
"type": "query"
},
{
"evaluator": {
"params": [
0
],
"type": "gt"
},
"operator": {
"type": "or"
},
"query": {
"params": [
"C",
"15m",
"now"
]
},
"reducer": {
"params": [],
"type": "avg"
},
"type": "query"
}
],
"executionErrorState": "alerting",
"frequency": "60s",
"handler": 1,
"name": "elasticsearch - cluster status alert",
"noDataState": "no_data",
"notifications": []
},
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "aws-cloudwatch",
"fill": 1,
"id": 1,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 3,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "/.*ClusterStatus.green$/",
"color": "#508642"
},
{
"alias": "/.*ClusterStatus.yellow$/",
"color": "#eab839",
"legend": false
},
{
"alias": "/.*ClusterStatus.red$/",
"color": "#bf1b00",
"legend": false
}
],
"spaceLength": 10,
"span": 3,
"stack": false,
"steppedLine": false,
"targets": [
{
"alias": "{{DomainName}}_{{metric}}",
"dimensions": {
"ClientId": "1234567890",
"DomainName": "elasticsearch-dev00"
},
"dsType": "influxdb",
"groupBy": [
{
"params": [
"5m"
],
"type": "time"
},
{
"params": [
"domain_name"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "cloudwatch_aws_es",
"metricName": "ClusterStatus.green",
"namespace": "AWS/ES",
"orderByTime": "ASC",
"period": "",
"policy": "default",
"refId": "A",
"region": "us-east-1",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"cluster_status.green_maximum"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"statistics": [
"Average"
],
"tags": [
{
"key": "environment",
"operator": "=",
"value": "$environment"
}
]
},
{
"alias": "{{DomainName}}_{{metric}}",
"dimensions": {
"ClientId": "1234567890",
"DomainName": "elasticsearch-dev00"
},
"dsType": "influxdb",
"groupBy": [
{
"params": [
"5m"
],
"type": "time"
},
{
"params": [
"domain_name"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "cloudwatch_aws_es",
"metricName": "ClusterStatus.yellow",
"namespace": "AWS/ES",
"orderByTime": "ASC",
"period": "",
"policy": "default",
"refId": "B",
"region": "us-east-1",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"cluster_status.green_maximum"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"statistics": [
"Average"
],
"tags": [
{
"key": "environment",
"operator": "=",
"value": "$environment"
}
]
},
{
"alias": "{{DomainName}}_{{metric}}",
"dimensions": {
"ClientId": "1234567890",
"DomainName": "elasticsearch-dev00"
},
"dsType": "influxdb",
"groupBy": [
{
"params": [
"5m"
],
"type": "time"
},
{
"params": [
"domain_name"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "cloudwatch_aws_es",
"metricName": "ClusterStatus.red",
"namespace": "AWS/ES",
"orderByTime": "ASC",
"period": "",
"policy": "default",
"refId": "C",
"region": "us-east-1",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"cluster_status.green_maximum"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"statistics": [
"Average"
],
"tags": [
{
"key": "environment",
"operator": "=",
"value": "$environment"
}
]
}
],
"thresholds": [
{
"colorMode": "critical",
"fill": true,
"line": true,
"op": "gt",
"value": 0
}
],
"timeFrom": null,
"timeShift": null,
"title": "$aws_stack_id - elasticsearch - cluster status",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"transparent": false,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
}
],
"repeat": null,
"repeatIteration": null,
"repeatRowId": null,
"showTitle": false,
"title": "Status",
"titleSize": "h6"
}
],
"schemaVersion": 14,
"style": "dark",
"tags": [
"aws",
"elasticsearch"
],
"templating": {
"list": [
{
"current": {
"text": "dev00",
"value": "dev00"
},
"hide": 0,
"label": null,
"name": "aws_stack_id",
"options": [
{
"selected": true,
"text": "dev00",
"value": "dev00"
}
],
"query": "dev00",
"type": "constant"
},
{
"current": {
"text": "us-east-1",
"value": "us-east-1"
},
"hide": 0,
"label": "aws stack region",
"name": "aws_stack_region",
"options": [
{
"selected": true,
"text": "us-east-1",
"value": "us-east-1"
}
],
"query": "us-east-1",
"type": "constant"
},
{
"current": {
"text": "1234567890",
"value": "1234567890"
},
"hide": 0,
"label": "aws account id",
"name": "aws_stack_account_number",
"options": [
{
"selected": true,
"text": "1234567890",
"value": "1234567890"
}
],
"query": "1234567890",
"type": "constant"
}
]
},
"time": {
"from": "now-3h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "browser",
"title": "dev00 - elasticsearch - health",
"version": 12
},
"overwrite": true
}