2018-02-16 03:18:40 -06:00
{
"annotations" : {
"list" : [
{
"builtIn" : 1 ,
"datasource" : "-- Grafana --" ,
2019-12-13 10:25:36 -06:00
"enable" : false ,
2018-02-16 03:18:40 -06:00
"hide" : true ,
"iconColor" : "rgba(0, 211, 255, 1)" ,
"name" : "Annotations & Alerts" ,
"type" : "dashboard"
2019-12-13 10:25:36 -06:00
} ,
{
"datasource" : "gdev-postgres" ,
"enable" : false ,
"hide" : false ,
"iconColor" : "rgba(0, 211, 255, 1)" ,
"limit" : 100 ,
"name" : "Single" ,
"rawQuery" : "SELECT\n \"createdAt\" as time,\n 'single' as text,\n hostname as tags\nFROM\n grafana_metric\nWHERE\n $__timeFilter(\"createdAt\")\nORDER BY time\nLIMIT 1\n" ,
"showIn" : 0 ,
"tags" : [ ] ,
"type" : "tags"
} ,
{
"datasource" : "gdev-postgres" ,
"enable" : false ,
"hide" : false ,
"iconColor" : "rgba(0, 211, 255, 1)" ,
"limit" : 100 ,
"name" : "Region" ,
"rawQuery" : "SELECT\n \"createdAt\" + (interval '1 minute') as time,\n \"createdAt\" + (6 * interval '1 minute') as timeend,\n 'region' as text,\n hostname as tags\nFROM\n grafana_metric\nWHERE\n $__timeFilter(\"createdAt\")\nORDER BY time\nLIMIT 1\n" ,
"showIn" : 0 ,
"tags" : [ ] ,
"type" : "tags"
2018-02-16 03:18:40 -06:00
}
]
} ,
"description" : "A dashboard visualizing data generated from grafana/fake-data-gen" ,
"editable" : true ,
"gnetId" : null ,
"graphTooltip" : 0 ,
2019-12-13 10:25:36 -06:00
"iteration" : 1576249087264 ,
2018-02-16 03:18:40 -06:00
"links" : [ ] ,
"panels" : [
{
"aliasColors" : {
"total avg" : "#6ed0e0"
} ,
"bars" : false ,
"dashLength" : 10 ,
"dashes" : false ,
2018-07-26 11:12:00 -05:00
"datasource" : "gdev-postgres" ,
2018-02-16 03:18:40 -06:00
"fill" : 2 ,
2019-12-13 10:25:36 -06:00
"fillGradient" : 0 ,
2018-02-16 03:18:40 -06:00
"gridPos" : {
"h" : 9 ,
"w" : 12 ,
"x" : 0 ,
"y" : 0
} ,
2019-12-13 10:25:36 -06:00
"hiddenSeries" : false ,
2018-02-16 03:18:40 -06:00
"id" : 2 ,
"legend" : {
"avg" : false ,
"current" : false ,
"max" : false ,
"min" : false ,
"show" : true ,
"total" : false ,
"values" : false
} ,
"lines" : true ,
"linewidth" : 2 ,
"links" : [ ] ,
"nullPointMode" : "null" ,
2019-12-13 10:25:36 -06:00
"options" : {
"dataLinks" : [ ]
} ,
2018-02-16 03:18:40 -06:00
"percentage" : false ,
"pointradius" : 5 ,
"points" : false ,
"renderer" : "flot" ,
"seriesOverrides" : [
{
"alias" : "total avg" ,
"fill" : 0 ,
"pointradius" : 3 ,
"points" : true
}
] ,
"spaceLength" : 10 ,
"stack" : false ,
"steppedLine" : false ,
"targets" : [
{
"alias" : "" ,
"format" : "time_series" ,
2019-12-13 10:25:36 -06:00
"group" : [ ] ,
2018-02-16 03:18:40 -06:00
"hide" : false ,
2019-12-13 10:25:36 -06:00
"metricColumn" : "none" ,
"rawQuery" : true ,
2018-02-16 03:18:40 -06:00
"rawSql" : "SELECT\n $__timeGroup(\"createdAt\",'$summarize'),\n avg(value) as \"value\",\n hostname as \"metric\"\nFROM \n grafana_metric\nWHERE\n $__timeFilter(\"createdAt\") AND\n measurement = 'logins.count' AND\n hostname IN($host)\nGROUP BY time, metric\nORDER BY time" ,
"refId" : "A" ,
2019-12-13 10:25:36 -06:00
"select" : [
[
{
"params" : [ "value" ] ,
"type" : "column"
}
]
] ,
"target" : "" ,
"timeColumn" : "time" ,
"where" : [
{
"name" : "$__timeFilter" ,
"params" : [ ] ,
"type" : "macro"
}
]
2018-02-16 03:18:40 -06:00
} ,
{
"alias" : "" ,
"format" : "time_series" ,
2019-12-13 10:25:36 -06:00
"group" : [ ] ,
"metricColumn" : "none" ,
"rawQuery" : true ,
2019-03-25 15:14:24 -05:00
"rawSql" : "SELECT\n $__timeGroup(\"createdAt\",'$summarize'),\n min(value) as \"value\",\n 'total avg' as \"metric\"\nFROM \n grafana_metric\nWHERE\n $__timeFilter(\"createdAt\") AND\n measurement = 'logins.count'\nGROUP BY time\nORDER BY time" ,
2019-12-13 10:25:36 -06:00
"refId" : "B" ,
"select" : [
[
{
"params" : [ "value" ] ,
"type" : "column"
}
]
] ,
"timeColumn" : "time" ,
"where" : [
{
"name" : "$__timeFilter" ,
"params" : [ ] ,
"type" : "macro"
}
]
2018-02-16 03:18:40 -06:00
}
] ,
"thresholds" : [ ] ,
"timeFrom" : null ,
2019-12-13 10:25:36 -06:00
"timeRegions" : [ ] ,
2018-02-16 03:18:40 -06:00
"timeShift" : null ,
"title" : "Average logins / $summarize" ,
"tooltip" : {
"shared" : true ,
"sort" : 0 ,
"value_type" : "individual"
} ,
"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
}
2018-07-26 11:12:00 -05:00
] ,
"yaxis" : {
"align" : false ,
"alignLevel" : null
}
2018-02-16 03:18:40 -06:00
} ,
{
"aliasColors" : { } ,
"bars" : false ,
"dashLength" : 10 ,
"dashes" : false ,
2018-07-26 11:12:00 -05:00
"datasource" : "gdev-postgres" ,
2018-02-16 03:18:40 -06:00
"fill" : 2 ,
2019-12-13 10:25:36 -06:00
"fillGradient" : 0 ,
2018-02-16 03:18:40 -06:00
"gridPos" : {
"h" : 18 ,
"w" : 12 ,
"x" : 12 ,
"y" : 0
} ,
2019-12-13 10:25:36 -06:00
"hiddenSeries" : false ,
2018-02-16 03:18:40 -06:00
"id" : 4 ,
"legend" : {
"avg" : false ,
"current" : false ,
"max" : false ,
"min" : false ,
"show" : true ,
"total" : false ,
"values" : false
} ,
"lines" : true ,
"linewidth" : 2 ,
"links" : [ ] ,
"nullPointMode" : "null" ,
2019-12-13 10:25:36 -06:00
"options" : {
"dataLinks" : [ ]
} ,
2018-02-16 03:18:40 -06:00
"percentage" : false ,
"pointradius" : 5 ,
"points" : false ,
"renderer" : "flot" ,
"seriesOverrides" : [ ] ,
"spaceLength" : 10 ,
"stack" : false ,
"steppedLine" : false ,
"targets" : [
{
"alias" : "" ,
"format" : "time_series" ,
"rawSql" : "SELECT\n $__timeGroup(\"createdAt\",'$summarize'),\n avg(value) as \"value\",\n 'started' as \"metric\"\nFROM \n grafana_metric\nWHERE\n $__timeFilter(\"createdAt\") AND\n measurement = 'payment.started'\nGROUP BY time, metric\nORDER BY time" ,
"refId" : "A" ,
"target" : ""
} ,
{
"alias" : "" ,
"format" : "time_series" ,
"rawSql" : "SELECT\n $__timeGroup(\"createdAt\",'$summarize'),\n avg(value) as \"value\",\n 'ended' as \"metric\"\nFROM \n grafana_metric\nWHERE\n $__timeFilter(\"createdAt\") AND\n measurement = 'payment.ended'\nGROUP BY time, metric\nORDER BY time" ,
"refId" : "B"
}
] ,
"thresholds" : [ ] ,
"timeFrom" : null ,
2019-12-13 10:25:36 -06:00
"timeRegions" : [ ] ,
2018-02-16 03:18:40 -06:00
"timeShift" : null ,
"title" : "Average payments started/ended / $summarize" ,
"tooltip" : {
"shared" : true ,
"sort" : 0 ,
"value_type" : "individual"
} ,
"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
}
2018-07-26 11:12:00 -05:00
] ,
"yaxis" : {
"align" : false ,
"alignLevel" : null
}
2018-02-16 03:18:40 -06:00
} ,
{
"aliasColors" : { } ,
"bars" : false ,
"dashLength" : 10 ,
"dashes" : false ,
2018-07-26 11:12:00 -05:00
"datasource" : "gdev-postgres" ,
2018-02-16 03:18:40 -06:00
"fill" : 2 ,
2019-12-13 10:25:36 -06:00
"fillGradient" : 0 ,
2018-02-16 03:18:40 -06:00
"gridPos" : {
"h" : 9 ,
"w" : 12 ,
"x" : 0 ,
"y" : 9
} ,
2019-12-13 10:25:36 -06:00
"hiddenSeries" : false ,
2018-02-16 03:18:40 -06:00
"id" : 3 ,
"legend" : {
"avg" : false ,
"current" : false ,
"max" : false ,
"min" : false ,
"show" : true ,
"total" : false ,
"values" : false
} ,
"lines" : true ,
"linewidth" : 2 ,
"links" : [ ] ,
"nullPointMode" : "null" ,
2019-12-13 10:25:36 -06:00
"options" : {
"dataLinks" : [ ]
} ,
2018-02-16 03:18:40 -06:00
"percentage" : false ,
"pointradius" : 5 ,
"points" : false ,
"renderer" : "flot" ,
"seriesOverrides" : [ ] ,
"spaceLength" : 10 ,
"stack" : false ,
"steppedLine" : false ,
"targets" : [
{
"alias" : "" ,
"format" : "time_series" ,
"rawSql" : "SELECT\n $__timeGroup(\"createdAt\",'$summarize'),\n max(value) as \"value\",\n hostname as \"metric\"\nFROM \n grafana_metric\nWHERE\n $__timeFilter(\"createdAt\") AND\n measurement = 'cpu' AND\n hostname IN($host)\nGROUP BY time, metric\nORDER BY time" ,
"refId" : "A" ,
"target" : ""
}
] ,
"thresholds" : [ ] ,
"timeFrom" : null ,
2019-12-13 10:25:36 -06:00
"timeRegions" : [ ] ,
2018-02-16 03:18:40 -06:00
"timeShift" : null ,
"title" : "Max CPU / $summarize" ,
"tooltip" : {
"shared" : true ,
"sort" : 0 ,
"value_type" : "individual"
} ,
"type" : "graph" ,
"xaxis" : {
"buckets" : null ,
"mode" : "time" ,
"name" : null ,
"show" : true ,
"values" : [ ]
} ,
"yaxes" : [
{
"format" : "percent" ,
"label" : null ,
"logBase" : 1 ,
"max" : null ,
"min" : null ,
"show" : true
} ,
{
"format" : "short" ,
"label" : null ,
"logBase" : 1 ,
"max" : null ,
"min" : null ,
"show" : true
}
2018-07-26 11:12:00 -05:00
] ,
"yaxis" : {
"align" : false ,
"alignLevel" : null
}
2018-02-16 03:18:40 -06:00
} ,
{
"columns" : [ ] ,
2018-07-26 11:12:00 -05:00
"datasource" : "gdev-postgres" ,
2018-02-16 03:18:40 -06:00
"fontSize" : "100%" ,
"gridPos" : {
"h" : 9 ,
"w" : 24 ,
"x" : 0 ,
"y" : 18
} ,
"id" : 6 ,
"links" : [ ] ,
2019-12-13 10:25:36 -06:00
"options" : { } ,
2018-02-16 03:18:40 -06:00
"pageSize" : null ,
"scroll" : true ,
"showHeader" : true ,
"sort" : {
"col" : 0 ,
"desc" : true
} ,
"styles" : [
{
"alias" : "Time" ,
"dateFormat" : "YYYY-MM-DD HH:mm:ss" ,
"link" : false ,
"pattern" : "Time" ,
"type" : "date"
} ,
{
"alias" : "" ,
"colorMode" : null ,
2019-03-25 15:14:24 -05:00
"colors" : [ "rgba(245, 54, 54, 0.9)" , "rgba(237, 129, 40, 0.89)" , "rgba(50, 172, 45, 0.97)" ] ,
2018-02-16 03:18:40 -06:00
"decimals" : 2 ,
"pattern" : "/.*/" ,
"thresholds" : [ ] ,
"type" : "number" ,
"unit" : "short"
}
] ,
"targets" : [
{
"alias" : "" ,
"format" : "table" ,
"rawSql" : "SELECT \"createdAt\" as \"Time\", source, datacenter, hostname, value FROM grafana_metric WHERE hostname in($host)" ,
"refId" : "A" ,
"target" : ""
}
] ,
"title" : "Values" ,
"transform" : "table" ,
"type" : "table"
}
] ,
2019-12-13 10:25:36 -06:00
"schemaVersion" : 21 ,
2019-04-15 03:51:17 -05:00
"tags" : [ "gdev" , "postgres" , "datasource-test" ] ,
2018-02-16 03:18:40 -06:00
"templating" : {
"list" : [
{
"allValue" : null ,
2018-07-26 11:12:00 -05:00
"current" : {
"text" : "America" ,
"value" : "America"
} ,
"datasource" : "gdev-postgres" ,
2019-12-13 10:25:36 -06:00
"definition" : "" ,
2018-02-16 03:18:40 -06:00
"hide" : 0 ,
"includeAll" : false ,
"label" : "Datacenter" ,
"multi" : false ,
"name" : "datacenter" ,
"options" : [ ] ,
"query" : "SELECT DISTINCT datacenter FROM grafana_metric" ,
"refresh" : 1 ,
"regex" : "" ,
2018-07-26 11:12:00 -05:00
"skipUrlSync" : false ,
2018-02-16 03:18:40 -06:00
"sort" : 1 ,
"tagValuesQuery" : "" ,
"tags" : [ ] ,
"tagsQuery" : "" ,
"type" : "query" ,
"useTags" : false
} ,
{
"allValue" : null ,
2018-07-26 11:12:00 -05:00
"current" : {
2019-12-13 10:25:36 -06:00
"selected" : false ,
2018-07-26 11:12:00 -05:00
"text" : "All" ,
"value" : "$__all"
} ,
"datasource" : "gdev-postgres" ,
2019-12-13 10:25:36 -06:00
"definition" : "" ,
2018-02-16 03:18:40 -06:00
"hide" : 0 ,
"includeAll" : true ,
"label" : "Hostname" ,
"multi" : true ,
"name" : "host" ,
"options" : [ ] ,
"query" : "SELECT DISTINCT hostname FROM grafana_metric WHERE datacenter='$datacenter'" ,
"refresh" : 1 ,
"regex" : "" ,
2018-07-26 11:12:00 -05:00
"skipUrlSync" : false ,
2018-02-16 03:18:40 -06:00
"sort" : 1 ,
"tagValuesQuery" : "" ,
"tags" : [ ] ,
"tagsQuery" : "" ,
"type" : "query" ,
"useTags" : false
} ,
{
"auto" : false ,
"auto_count" : 5 ,
"auto_min" : "10s" ,
"current" : {
2019-12-13 10:25:36 -06:00
"selected" : false ,
2018-02-16 03:18:40 -06:00
"text" : "1m" ,
"value" : "1m"
} ,
"hide" : 0 ,
"label" : "Summarize" ,
"name" : "summarize" ,
"options" : [
{
"selected" : false ,
"text" : "1s" ,
"value" : "1s"
} ,
{
"selected" : false ,
"text" : "10s" ,
"value" : "10s"
} ,
{
"selected" : false ,
"text" : "30s" ,
"value" : "30s"
} ,
{
"selected" : true ,
"text" : "1m" ,
"value" : "1m"
} ,
{
"selected" : false ,
"text" : "5m" ,
"value" : "5m"
} ,
{
"selected" : false ,
"text" : "10m" ,
"value" : "10m"
} ,
{
"selected" : false ,
"text" : "30m" ,
"value" : "30m"
} ,
{
"selected" : false ,
"text" : "1h" ,
"value" : "1h"
} ,
{
"selected" : false ,
"text" : "6h" ,
"value" : "6h"
} ,
{
"selected" : false ,
"text" : "12h" ,
"value" : "12h"
} ,
{
"selected" : false ,
"text" : "1d" ,
"value" : "1d"
} ,
{
"selected" : false ,
"text" : "7d" ,
"value" : "7d"
} ,
{
"selected" : false ,
"text" : "14d" ,
"value" : "14d"
} ,
{
"selected" : false ,
"text" : "30d" ,
"value" : "30d"
}
] ,
"query" : "1s,10s,30s,1m,5m,10m,30m,1h,6h,12h,1d,7d,14d,30d" ,
"refresh" : 2 ,
2018-07-26 11:12:00 -05:00
"skipUrlSync" : false ,
2018-02-16 03:18:40 -06:00
"type" : "interval"
}
]
} ,
"time" : {
"from" : "now-1h" ,
"to" : "now"
} ,
"timepicker" : {
2019-03-25 15:14:24 -05:00
"refresh_intervals" : [ "5s" , "10s" , "30s" , "1m" , "5m" , "15m" , "30m" , "1h" , "2h" , "1d" ] ,
"time_options" : [ "5m" , "15m" , "1h" , "6h" , "12h" , "24h" , "2d" , "7d" , "30d" ]
2018-02-16 03:18:40 -06:00
} ,
"timezone" : "" ,
2018-07-26 11:12:00 -05:00
"title" : "Datasource tests - Postgres" ,
2018-02-16 03:18:40 -06:00
"uid" : "JYola5qzz" ,
2019-12-13 10:25:36 -06:00
"version" : 5
2019-03-25 15:14:24 -05:00
}