"query":"SELECT last(\"value\") FROM \"cluster_status\" WHERE \"environment_label\" =~ /^$environment$/ AND \"cluster_name\" = 'mysql' AND $timeFilter GROUP BY time($interval) fill(null)",
"query":"SELECT mean(\"value\") FROM \"mysql_locks_immediate\" WHERE \"environment_label\" =~ /^$environment$/ AND \"hostname\" =~ /$server/ AND $timeFilter GROUP BY time($interval) fill(0)",
"query":"SELECT mean(\"value\") FROM \"mysql_locks_waited\" WHERE \"environment_label\" =~ /^$environment$/ AND \"hostname\" =~ /$server/ AND $timeFilter GROUP BY time($interval) fill(0)",
"query":"SELECT mean(\"value\") FROM \"mysql_threads_cached\" WHERE \"hostname\" =~ /$server/ AND $timeFilter GROUP BY time($interval) fill(0)",
"rawQuery":false,
"refId":"A",
"resultFormat":"time_series",
"select":[
[
{
"params":[
"value"
],
"type":"field"
},
{
"params":[],
"type":"mean"
}
]
],
"tags":[
{
"key":"hostname",
"value":"/$server/"
}
]
},
{
"alias":"connected",
"column":"value",
"dsType":"influxdb",
"function":"mean",
"groupBy":[
{
"params":[
"$interval"
],
"type":"time"
},
{
"params":[
"0"
],
"type":"fill"
}
],
"groupByTags":[],
"measurement":"mysql_threads_connected",
"policy":"default",
"query":"SELECT mean(\"value\") FROM \"mysql_threads_connected\" WHERE \"hostname\" =~ /$server/ AND $timeFilter GROUP BY time($interval) fill(0)",
"rawQuery":false,
"refId":"B",
"resultFormat":"time_series",
"select":[
[
{
"params":[
"value"
],
"type":"field"
},
{
"params":[],
"type":"mean"
}
]
],
"tags":[
{
"key":"hostname",
"value":"/$server/"
}
]
},
{
"alias":"running",
"column":"value",
"dsType":"influxdb",
"function":"mean",
"groupBy":[
{
"params":[
"$interval"
],
"type":"time"
},
{
"params":[
"0"
],
"type":"fill"
}
],
"groupByTags":[],
"measurement":"mysql_threads_running",
"policy":"default",
"query":"SELECT mean(\"value\") FROM \"mysql_threads_running\" WHERE \"hostname\" =~ /$server/ AND $timeFilter GROUP BY time($interval) fill(0)",
"rawQuery":false,
"refId":"C",
"resultFormat":"time_series",
"select":[
[
{
"params":[
"value"
],
"type":"field"
},
{
"params":[],
"type":"mean"
}
]
],
"tags":[
{
"key":"hostname",
"value":"/$server/"
}
]
}
],
"timeFrom":null,
"timeShift":null,
"title":"Threads",
"tooltip":{
"msResolution":false,
"shared":true,
"value_type":"cumulative"
},
"type":"graph",
"xaxis":{
"show":true
},
"yaxes":[
{
"format":"short",
"label":"Thread Count",
"logBase":1,
"max":null,
"min":0,
"show":true
},
{
"format":"short",
"logBase":1,
"max":null,
"min":null,
"show":true
}
]
},
{
"aliasColors":{},
"bars":false,
"datasource":null,
"editable":true,
"error":false,
"fill":0,
"grid":{
"threshold1":null,
"threshold1Color":"rgba(216, 200, 27, 0.27)",
"threshold2":null,
"threshold2Color":"rgba(234, 112, 112, 0.22)"
},
"id":21,
"interval":">60s",
"legend":{
"avg":false,
"current":false,
"max":false,
"min":false,
"show":true,
"total":false,
"values":false
},
"lines":true,
"linewidth":1,
"links":[],
"nullPointMode":"connected",
"percentage":false,
"pointradius":5,
"points":false,
"renderer":"flot",
"seriesOverrides":[],
"span":6,
"stack":false,
"steppedLine":false,
"targets":[
{
"alias":"commit",
"column":"value",
"dsType":"influxdb",
"function":"mean",
"groupBy":[
{
"params":[
"$interval"
],
"type":"time"
},
{
"params":[
"0"
],
"type":"fill"
}
],
"groupByTags":[],
"measurement":"mysql_commands",
"policy":"default",
"query":"SELECT mean(\"value\") FROM \"mysql_commands\" WHERE \"hostname\" =~ /$server/ AND \"statement\" = 'commit' AND $timeFilter GROUP BY time($interval) fill(0)",
"rawQuery":false,
"refId":"A",
"resultFormat":"time_series",
"select":[
[
{
"params":[
"value"
],
"type":"field"
},
{
"params":[],
"type":"mean"
}
]
],
"tags":[
{
"key":"hostname",
"value":"/$server/"
},
{
"condition":"AND",
"key":"statement",
"value":"commit"
}
]
},
{
"alias":"delete",
"column":"value",
"dsType":"influxdb",
"function":"mean",
"groupBy":[
{
"params":[
"$interval"
],
"type":"time"
},
{
"params":[
"0"
],
"type":"fill"
}
],
"groupByTags":[],
"measurement":"mysql_commands",
"policy":"default",
"query":"SELECT mean(\"value\") FROM \"mysql_commands\" WHERE \"hostname\" =~ /$server/ AND \"statement\" = 'delete' AND $timeFilter GROUP BY time($interval) fill(0)",
"rawQuery":false,
"refId":"B",
"resultFormat":"time_series",
"select":[
[
{
"params":[
"value"
],
"type":"field"
},
{
"params":[],
"type":"mean"
}
]
],
"tags":[
{
"key":"hostname",
"value":"/$server/"
},
{
"condition":"AND",
"key":"statement",
"value":"delete"
}
]
},
{
"alias":"insert",
"column":"value",
"dsType":"influxdb",
"function":"mean",
"groupBy":[
{
"params":[
"$interval"
],
"type":"time"
},
{
"params":[
"0"
],
"type":"fill"
}
],
"groupByTags":[],
"measurement":"mysql_commands",
"policy":"default",
"query":"SELECT mean(\"value\") FROM \"mysql_commands\" WHERE \"hostname\" =~ /$server/ AND \"statement\" = 'insert' AND $timeFilter GROUP BY time($interval) fill(0)",
"rawQuery":false,
"refId":"C",
"resultFormat":"time_series",
"select":[
[
{
"params":[
"value"
],
"type":"field"
},
{
"params":[],
"type":"mean"
}
]
],
"tags":[
{
"key":"hostname",
"value":"/$server/"
},
{
"condition":"AND",
"key":"statement",
"value":"insert"
}
]
},
{
"alias":"select",
"column":"value",
"dsType":"influxdb",
"function":"mean",
"groupBy":[
{
"params":[
"$interval"
],
"type":"time"
},
{
"params":[
"0"
],
"type":"fill"
}
],
"groupByTags":[],
"measurement":"mysql_commands",
"policy":"default",
"query":"SELECT mean(\"value\") FROM \"mysql_commands\" WHERE \"hostname\" =~ /$server/ AND \"statement\" = 'select' AND $timeFilter GROUP BY time($interval) fill(0)",
"rawQuery":false,
"refId":"D",
"resultFormat":"time_series",
"select":[
[
{
"params":[
"value"
],
"type":"field"
},
{
"params":[],
"type":"mean"
}
]
],
"tags":[
{
"key":"hostname",
"value":"/$server/"
},
{
"condition":"AND",
"key":"statement",
"value":"select"
}
]
},
{
"alias":"rollback",
"column":"value",
"dsType":"influxdb",
"function":"mean",
"groupBy":[
{
"params":[
"$interval"
],
"type":"time"
},
{
"params":[
"0"
],
"type":"fill"
}
],
"groupByTags":[],
"measurement":"mysql_commands",
"policy":"default",
"query":"SELECT mean(\"value\") FROM \"mysql_commands\" WHERE \"hostname\" =~ /$server/ AND \"statement\" = 'rollback' AND $timeFilter GROUP BY time($interval) fill(0)",
"rawQuery":false,
"refId":"E",
"resultFormat":"time_series",
"select":[
[
{
"params":[
"value"
],
"type":"field"
},
{
"params":[],
"type":"mean"
}
]
],
"tags":[
{
"key":"hostname",
"value":"/$server/"
},
{
"condition":"AND",
"key":"statement",
"value":"rollback"
}
]
},
{
"alias":"update",
"column":"value",
"dsType":"influxdb",
"function":"mean",
"groupBy":[
{
"params":[
"$interval"
],
"type":"time"
},
{
"params":[
"0"
],
"type":"fill"
}
],
"groupByTags":[],
"measurement":"mysql_commands",
"policy":"default",
"query":"SELECT mean(\"value\") FROM \"mysql_commands\" WHERE \"hostname\" =~ /$server/ AND \"statement\" = 'update' AND $timeFilter GROUP BY time($interval) fill(0)",
"rawQuery":false,
"refId":"F",
"resultFormat":"time_series",
"select":[
[
{
"params":[
"value"
],
"type":"field"
},
{
"params":[],
"type":"mean"
}
]
],
"tags":[
{
"key":"hostname",
"value":"/$server/"
},
{
"condition":"AND",
"key":"statement",
"value":"update"
}
]
}
],
"timeFrom":null,
"timeShift":null,
"title":"Commands",
"tooltip":{
"msResolution":false,
"shared":true,
"value_type":"cumulative"
},
"type":"graph",
"xaxis":{
"show":true
},
"yaxes":[
{
"format":"short",
"label":"per second",
"logBase":1,
"max":null,
"min":0,
"show":true
},
{
"format":"short",
"logBase":1,
"max":null,
"min":null,
"show":true
}
]
},
{
"aliasColors":{},
"bars":false,
"datasource":null,
"editable":true,
"error":false,
"fill":0,
"grid":{
"threshold1":null,
"threshold1Color":"rgba(216, 200, 27, 0.27)",
"threshold2":null,
"threshold2Color":"rgba(234, 112, 112, 0.22)"
},
"id":25,
"interval":"> 60s",
"legend":{
"avg":false,
"current":false,
"max":false,
"min":false,
"show":true,
"total":false,
"values":false
},
"lines":true,
"linewidth":1,
"links":[],
"nullPointMode":"connected",
"percentage":false,
"pointradius":5,
"points":false,
"renderer":"flot",
"seriesOverrides":[],
"span":6,
"stack":false,
"steppedLine":false,
"targets":[
{
"alias":"$tag_handler",
"column":"value",
"dsType":"influxdb",
"function":"mean",
"groupBy":[
{
"interval":"auto",
"params":[
"auto"
],
"type":"time"
},
{
"params":[
"handler"
],
"type":"tag"
},
{
"params":[
"previous"
],
"type":"fill"
}
],
"measurement":"mysql_handler",
"policy":"default",
"query":"SELECT mean(\"value\") FROM \"mysql_handler\" WHERE \"hostname\" =~ /$server/ AND $timeFilter GROUP BY time($interval), \"handler\" fill(previous)",
"rawQuery":false,
"refId":"A",
"resultFormat":"time_series",
"select":[
[
{
"params":[
"value"
],
"type":"field"
},
{
"params":[],
"type":"mean"
}
]
],
"tags":[
{
"key":"hostname",
"operator":"=~",
"value":"/$server/"
}
]
}
],
"timeFrom":null,
"timeShift":null,
"title":"Handlers",
"tooltip":{
"msResolution":false,
"shared":true,
"value_type":"cumulative"
},
"type":"graph",
"xaxis":{
"show":true
},
"yaxes":[
{
"format":"short",
"label":"per second",
"logBase":1,
"max":null,
"min":null,
"show":true
},
{
"format":"short",
"logBase":1,
"max":null,
"min":null,
"show":true
}
]
}
],
"title":"MySQL"
}
],
"schemaVersion":12,
"sharedCrosshair":true,
"style":"dark",
"tags":[],
"templating":{
"enable":true,
"list":[
{
"allFormat":"regex values",
"current":{},
"datasource":null,
"hide":0,
"includeAll":false,
"name":"environment",
"options":[],
"query":"show tag values from cpu_idle with key = environment_label",