2022-01-13 14:40:28 +00:00
{
"__inputs" : [
{
"name" : "DS_CELERY" ,
"label" : "celery" ,
"description" : "" ,
"type" : "datasource" ,
"pluginId" : "influxdb" ,
"pluginName" : "InfluxDB"
}
] ,
2022-01-14 11:58:44 +00:00
"__elements" : [ ] ,
2022-01-13 14:40:28 +00:00
"__requires" : [
{
"type" : "grafana" ,
"id" : "grafana" ,
"name" : "Grafana" ,
2022-01-14 11:58:44 +00:00
"version" : "8.3.1"
2022-01-13 14:40:28 +00:00
} ,
{
"type" : "datasource" ,
"id" : "influxdb" ,
"name" : "InfluxDB" ,
"version" : "1.0.0"
} ,
{
"type" : "panel" ,
"id" : "timeseries" ,
"name" : "Time series" ,
"version" : ""
}
] ,
"annotations" : {
"list" : [
{
"builtIn" : 1 ,
"datasource" : "-- Grafana --" ,
"enable" : true ,
"hide" : true ,
"iconColor" : "rgba(0, 211, 255, 1)" ,
"name" : "Annotations & Alerts" ,
"target" : {
"limit" : 100 ,
"matchAny" : false ,
"tags" : [ ] ,
"type" : "dashboard"
} ,
"type" : "dashboard"
}
]
} ,
"editable" : true ,
"fiscalYearStartMonth" : 0 ,
"graphTooltip" : 0 ,
"id" : null ,
2022-02-11 11:06:01 +00:00
"iteration" : 1644554238421 ,
2022-01-13 14:40:28 +00:00
"links" : [ ] ,
"liveNow" : false ,
"panels" : [
{
2022-01-14 11:58:44 +00:00
"datasource" : {
"type" : "influxdb" ,
"uid" : "${DS_CELERY}"
} ,
2022-01-13 14:40:28 +00:00
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "palette-classic"
} ,
"custom" : {
"axisLabel" : "" ,
"axisPlacement" : "auto" ,
"barAlignment" : 0 ,
"drawStyle" : "line" ,
"fillOpacity" : 5 ,
"gradientMode" : "none" ,
"hideFrom" : {
"legend" : false ,
"tooltip" : false ,
"viz" : false
} ,
"lineInterpolation" : "linear" ,
"lineWidth" : 1 ,
"pointSize" : 5 ,
"scaleDistribution" : {
"type" : "linear"
} ,
"showPoints" : "auto" ,
"spanNulls" : true ,
"stacking" : {
"group" : "A" ,
"mode" : "none"
} ,
"thresholdsStyle" : {
"mode" : "off"
}
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green" ,
"value" : null
} ,
{
"color" : "red" ,
"value" : 80
}
]
}
} ,
"overrides" : [ ]
} ,
"gridPos" : {
2022-01-14 11:58:44 +00:00
"h" : 8 ,
"w" : 12 ,
2022-01-13 14:40:28 +00:00
"x" : 0 ,
"y" : 0
} ,
"id" : 2 ,
"options" : {
"legend" : {
"calcs" : [ ] ,
"displayMode" : "list" ,
"placement" : "bottom"
} ,
"tooltip" : {
"mode" : "single"
}
} ,
"targets" : [
{
"alias" : "Active" ,
"groupBy" : [
{
"params" : [
"$__interval"
] ,
"type" : "time"
} ,
{
"params" : [
"null"
] ,
"type" : "fill"
}
] ,
"measurement" : "active" ,
"orderByTime" : "ASC" ,
"policy" : "default" ,
"query" : "SELECT mean(\"active\") FROM \"active\" WHERE $timeFilter GROUP BY time($__interval) " ,
"rawQuery" : true ,
"refId" : "A" ,
"resultFormat" : "time_series" ,
"select" : [
[
{
"params" : [
"active"
] ,
"type" : "field"
} ,
{
"params" : [ ] ,
"type" : "mean"
}
]
] ,
"tags" : [ ]
} ,
{
"alias" : "$tag_hostname" ,
"hide" : false ,
"query" : "\nSELECT \nmean(\"active\") AS active\nFROM \"tasks\" WHERE (\"hostname\" =~ /^$hostname$/) AND $timeFilter GROUP BY time($__interval) ,* ORDER BY asc " ,
"rawQuery" : true ,
"refId" : "B" ,
"resultFormat" : "time_series"
}
] ,
"title" : "Active Jobs" ,
"type" : "timeseries"
} ,
{
2022-01-14 11:58:44 +00:00
"datasource" : {
"type" : "influxdb" ,
"uid" : "${DS_CELERY}"
} ,
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "palette-classic"
} ,
"custom" : {
"axisLabel" : "" ,
"axisPlacement" : "auto" ,
"barAlignment" : 0 ,
"drawStyle" : "line" ,
"fillOpacity" : 5 ,
"gradientMode" : "none" ,
"hideFrom" : {
"legend" : false ,
"tooltip" : false ,
"viz" : false
} ,
"lineInterpolation" : "smooth" ,
"lineWidth" : 1 ,
"pointSize" : 5 ,
"scaleDistribution" : {
"type" : "linear"
} ,
"showPoints" : "auto" ,
"spanNulls" : true ,
"stacking" : {
"group" : "A" ,
"mode" : "none"
} ,
"thresholdsStyle" : {
"mode" : "off"
}
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green" ,
"value" : null
} ,
{
"color" : "red" ,
"value" : 80
}
]
2022-02-11 11:06:01 +00:00
} ,
"unit" : "percent"
2022-01-14 11:58:44 +00:00
} ,
"overrides" : [ ]
} ,
"gridPos" : {
"h" : 8 ,
"w" : 12 ,
"x" : 12 ,
"y" : 0
} ,
2022-02-11 11:06:01 +00:00
"id" : 10 ,
2022-01-14 11:58:44 +00:00
"options" : {
"legend" : {
"calcs" : [ ] ,
"displayMode" : "list" ,
"placement" : "bottom"
} ,
"tooltip" : {
"mode" : "single"
}
} ,
"targets" : [
{
"alias" : "$col" ,
"datasource" : {
"type" : "influxdb" ,
"uid" : "${DS_CELERY}"
} ,
"groupBy" : [
{
"params" : [
"$__interval"
] ,
"type" : "time"
} ,
{
"params" : [
"null"
] ,
"type" : "fill"
}
] ,
"measurement" : "metrics" ,
"orderByTime" : "ASC" ,
"policy" : "default" ,
2022-02-11 11:06:01 +00:00
"query" : "\nSELECT \nmean(\"today_audio_success\")/mean(\"today_audio_request\")*100 as audio_success,\nmean(\"today_video_success\")/mean(\"today_video_request\")*100 as video_success\n\nFROM \"metrics\" WHERE $timeFilter GROUP BY time($__interval), * ORDER BY asc " ,
2022-01-14 11:58:44 +00:00
"rawQuery" : true ,
"refId" : "A" ,
"resultFormat" : "time_series" ,
"select" : [
[
{
"params" : [
"today_audio_success"
] ,
"type" : "field"
} ,
{
"params" : [ ] ,
"type" : "mean"
}
]
] ,
"tags" : [ ]
}
] ,
2022-02-11 11:06:01 +00:00
"title" : "Video & Audio Success Rate" ,
2022-01-14 11:58:44 +00:00
"type" : "timeseries"
} ,
{
"datasource" : {
"type" : "influxdb" ,
"uid" : "${DS_CELERY}"
} ,
2022-01-13 14:40:28 +00:00
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "palette-classic"
} ,
"custom" : {
"axisLabel" : "" ,
"axisPlacement" : "auto" ,
"barAlignment" : 0 ,
"drawStyle" : "line" ,
"fillOpacity" : 5 ,
"gradientMode" : "none" ,
"hideFrom" : {
"legend" : false ,
"tooltip" : false ,
"viz" : false
} ,
"lineInterpolation" : "smooth" ,
"lineWidth" : 1 ,
"pointSize" : 5 ,
"scaleDistribution" : {
"type" : "linear"
} ,
"showPoints" : "auto" ,
"spanNulls" : true ,
"stacking" : {
"group" : "A" ,
"mode" : "none"
} ,
"thresholdsStyle" : {
"mode" : "off"
}
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green" ,
"value" : null
} ,
{
"color" : "red" ,
"value" : 80
}
]
}
} ,
"overrides" : [ ]
} ,
"gridPos" : {
"h" : 8 ,
"w" : 12 ,
"x" : 0 ,
2022-01-14 11:58:44 +00:00
"y" : 8
2022-01-13 14:40:28 +00:00
} ,
"id" : 6 ,
"options" : {
"legend" : {
"calcs" : [ ] ,
"displayMode" : "list" ,
"placement" : "bottom"
} ,
"tooltip" : {
"mode" : "single"
}
} ,
"targets" : [
{
"alias" : "$tag_hostname:$col" ,
"query" : "SELECT mean(\"load1\") AS load1,mean(\"load5\") AS load5,mean(\"load15\") AS load15\nFROM \"tasks\" WHERE (\"hostname\" =~ /^$hostname$/) AND $timeFilter GROUP BY time($__interval) ,* ORDER BY asc \n\n" ,
"rawQuery" : true ,
"refId" : "A" ,
"resultFormat" : "time_series"
}
] ,
"title" : "Load Average" ,
"type" : "timeseries"
} ,
{
2022-01-14 11:58:44 +00:00
"datasource" : {
"type" : "influxdb" ,
"uid" : "${DS_CELERY}"
} ,
2022-01-13 14:40:28 +00:00
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "palette-classic"
} ,
"custom" : {
"axisLabel" : "" ,
"axisPlacement" : "auto" ,
"barAlignment" : 0 ,
"drawStyle" : "line" ,
"fillOpacity" : 5 ,
"gradientMode" : "none" ,
"hideFrom" : {
"legend" : false ,
"tooltip" : false ,
"viz" : false
} ,
"lineInterpolation" : "smooth" ,
"lineWidth" : 1 ,
"pointSize" : 5 ,
"scaleDistribution" : {
"type" : "linear"
} ,
"showPoints" : "auto" ,
"spanNulls" : true ,
"stacking" : {
"group" : "A" ,
"mode" : "none"
} ,
"thresholdsStyle" : {
"mode" : "off"
}
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green" ,
"value" : null
} ,
{
"color" : "red" ,
"value" : 80
}
]
2022-02-11 11:06:01 +00:00
} ,
"unit" : "percent"
2022-01-13 14:40:28 +00:00
} ,
"overrides" : [ ]
} ,
"gridPos" : {
"h" : 8 ,
"w" : 12 ,
"x" : 12 ,
2022-01-14 11:58:44 +00:00
"y" : 8
2022-01-13 14:40:28 +00:00
} ,
2022-02-11 11:06:01 +00:00
"id" : 9 ,
2022-01-13 14:40:28 +00:00
"options" : {
"legend" : {
"calcs" : [ ] ,
"displayMode" : "list" ,
"placement" : "bottom"
} ,
"tooltip" : {
"mode" : "single"
}
} ,
"targets" : [
{
"alias" : "$tag_hostname:$col" ,
2022-02-11 11:06:01 +00:00
"datasource" : {
"type" : "influxdb" ,
"uid" : "${DS_CELERY}"
} ,
2022-01-13 14:40:28 +00:00
"groupBy" : [
{
"params" : [
"$__interval"
] ,
"type" : "time"
} ,
{
"params" : [
"null"
] ,
"type" : "fill"
}
] ,
"measurement" : "tasks" ,
"orderByTime" : "ASC" ,
"policy" : "default" ,
2022-02-11 11:06:01 +00:00
"query" : "\nSELECT mean(\"task-succeeded\")/mean(\"task-received\")*100 AS success_rate, mean(\"task-failed\")/mean(\"task-received\")*100 AS fail_rate\n\nFROM \"tasks\" WHERE (\"hostname\" =~ /^$hostname$/) AND $timeFilter GROUP BY time($__interval) ,* ORDER BY asc " ,
2022-01-13 14:40:28 +00:00
"rawQuery" : true ,
"refId" : "A" ,
"resultFormat" : "time_series" ,
"select" : [
[
{
"params" : [
"task-received"
] ,
"type" : "field"
2022-02-11 11:06:01 +00:00
}
]
] ,
"tags" : [
{
"key" : "hostname" ,
"operator" : "=~" ,
"value" : "/^$hostname$/"
}
]
}
] ,
"title" : "Task Rate" ,
"type" : "timeseries"
} ,
{
"datasource" : {
"type" : "influxdb" ,
"uid" : "${DS_CELERY}"
} ,
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "palette-classic"
} ,
"custom" : {
"axisLabel" : "" ,
"axisPlacement" : "auto" ,
"barAlignment" : 0 ,
"drawStyle" : "line" ,
"fillOpacity" : 5 ,
"gradientMode" : "none" ,
"hideFrom" : {
"legend" : false ,
"tooltip" : false ,
"viz" : false
} ,
"lineInterpolation" : "smooth" ,
"lineWidth" : 1 ,
"pointSize" : 5 ,
"scaleDistribution" : {
"type" : "linear"
} ,
"showPoints" : "auto" ,
"spanNulls" : true ,
"stacking" : {
"group" : "A" ,
"mode" : "none"
} ,
"thresholdsStyle" : {
"mode" : "off"
}
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green" ,
"value" : null
2022-01-13 14:40:28 +00:00
} ,
{
2022-02-11 11:06:01 +00:00
"color" : "red" ,
"value" : 80
}
]
} ,
"unit" : "none"
} ,
"overrides" : [ ]
} ,
"gridPos" : {
"h" : 8 ,
"w" : 12 ,
"x" : 0 ,
"y" : 16
} ,
"id" : 13 ,
"options" : {
"legend" : {
"calcs" : [ ] ,
"displayMode" : "list" ,
"placement" : "bottom"
} ,
"tooltip" : {
"mode" : "single"
}
} ,
"targets" : [
{
"alias" : "$tag_hostname:$col" ,
"datasource" : {
"type" : "influxdb" ,
"uid" : "${DS_CELERY}"
} ,
"groupBy" : [
{
"params" : [
"$__interval"
] ,
"type" : "time"
} ,
{
"params" : [
"null"
] ,
"type" : "fill"
}
] ,
"measurement" : "tasks" ,
"orderByTime" : "ASC" ,
"policy" : "default" ,
"query" : "\nSELECT mean(\"task-received\") AS received, mean(\"task-started\") AS started,mean(\"task-succeeded\") AS succeeded,mean(\"task-failed\") AS failed\n\nFROM \"tasks\" WHERE (\"hostname\" =~ /^$hostname$/) AND $timeFilter GROUP BY time($__interval) ,* ORDER BY asc " ,
"rawQuery" : true ,
"refId" : "A" ,
"resultFormat" : "time_series" ,
"select" : [
[
{
"params" : [
"task-received"
] ,
"type" : "field"
2022-01-13 14:40:28 +00:00
}
]
] ,
"tags" : [
{
"key" : "hostname" ,
"operator" : "=~" ,
"value" : "/^$hostname$/"
}
]
}
] ,
"title" : "Task Status" ,
"type" : "timeseries"
2022-02-11 11:06:01 +00:00
} ,
{
"datasource" : {
"type" : "influxdb" ,
"uid" : "${DS_CELERY}"
} ,
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "palette-classic"
} ,
"custom" : {
"axisLabel" : "" ,
"axisPlacement" : "auto" ,
"barAlignment" : 0 ,
"drawStyle" : "line" ,
"fillOpacity" : 5 ,
"gradientMode" : "none" ,
"hideFrom" : {
"legend" : false ,
"tooltip" : false ,
"viz" : false
} ,
"lineInterpolation" : "smooth" ,
"lineWidth" : 1 ,
"pointSize" : 5 ,
"scaleDistribution" : {
"type" : "linear"
} ,
"showPoints" : "auto" ,
"spanNulls" : true ,
"stacking" : {
"group" : "A" ,
"mode" : "none"
} ,
"thresholdsStyle" : {
"mode" : "off"
}
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green" ,
"value" : null
} ,
{
"color" : "red" ,
"value" : 80
}
]
}
} ,
"overrides" : [ ]
} ,
"gridPos" : {
"h" : 8 ,
"w" : 12 ,
"x" : 12 ,
"y" : 16
} ,
"id" : 8 ,
"options" : {
"legend" : {
"calcs" : [ ] ,
"displayMode" : "list" ,
"placement" : "bottom"
} ,
"tooltip" : {
"mode" : "single"
}
} ,
"targets" : [
{
"alias" : "$col" ,
"datasource" : {
"type" : "influxdb" ,
"uid" : "${DS_CELERY}"
} ,
"groupBy" : [
{
"params" : [
"$__interval"
] ,
"type" : "time"
} ,
{
"params" : [
"null"
] ,
"type" : "fill"
}
] ,
"measurement" : "metrics" ,
"orderByTime" : "ASC" ,
"policy" : "default" ,
"query" : "SELECT \nmean(\"today_audio_request\") as audio_request,\nmean(\"today_audio_success\") as audio_success,\n\nmean(\"today_bad_request\") as bad_request,\n\nmean(\"today_video_request\") as video_request,\nmean(\"today_video_success\") as video_success\nFROM \"metrics\" WHERE $timeFilter GROUP BY time($__interval), * ORDER BY asc " ,
"rawQuery" : true ,
"refId" : "A" ,
"resultFormat" : "time_series" ,
"select" : [
[
{
"params" : [
"today_audio_success"
] ,
"type" : "field"
} ,
{
"params" : [ ] ,
"type" : "mean"
}
]
] ,
"tags" : [ ]
}
] ,
"title" : "Video & Audio" ,
"type" : "timeseries"
2022-01-13 14:40:28 +00:00
}
] ,
2022-01-14 11:58:44 +00:00
"refresh" : "" ,
"schemaVersion" : 33 ,
2022-01-13 14:40:28 +00:00
"style" : "dark" ,
"tags" : [ ] ,
"templating" : {
"list" : [
{
"current" : { } ,
2022-01-14 11:58:44 +00:00
"datasource" : {
"type" : "influxdb" ,
"uid" : "${DS_CELERY}"
} ,
2022-01-13 14:40:28 +00:00
"definition" : "show tag values with KEY=\"hostname\"" ,
"hide" : 0 ,
"includeAll" : true ,
"label" : "hostname" ,
"multi" : true ,
"name" : "hostname" ,
"options" : [ ] ,
"query" : "show tag values with KEY=\"hostname\"" ,
"refresh" : 1 ,
"regex" : "" ,
"skipUrlSync" : false ,
"sort" : 1 ,
"type" : "query"
}
]
} ,
"time" : {
"from" : "now-15m" ,
"to" : "now"
} ,
"timepicker" : { } ,
"timezone" : "" ,
"title" : "YouTube Download Celery" ,
"uid" : "9yXGmc1nk" ,
2022-02-11 11:06:01 +00:00
"version" : 14 ,
2022-01-14 11:58:44 +00:00
"weekStart" : ""
2022-01-13 14:40:28 +00:00
}