infra: improved analytics dashboard
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
"editable": true,
|
"editable": true,
|
||||||
"fiscalYearStartMonth": 0,
|
"fiscalYearStartMonth": 0,
|
||||||
"graphTooltip": 0,
|
"graphTooltip": 0,
|
||||||
"id": 2,
|
"id": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"liveNow": true,
|
"liveNow": true,
|
||||||
"panels": [
|
"panels": [
|
||||||
@@ -198,7 +198,7 @@
|
|||||||
"barWidthFactor": 0.6,
|
"barWidthFactor": 0.6,
|
||||||
"drawStyle": "line",
|
"drawStyle": "line",
|
||||||
"fillOpacity": 8,
|
"fillOpacity": 8,
|
||||||
"gradientMode": "none",
|
"gradientMode": "opacity",
|
||||||
"hideFrom": {
|
"hideFrom": {
|
||||||
"legend": false,
|
"legend": false,
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
@@ -422,8 +422,8 @@
|
|||||||
"lineStyle": {
|
"lineStyle": {
|
||||||
"fill": "solid"
|
"fill": "solid"
|
||||||
},
|
},
|
||||||
"lineWidth": 3,
|
"lineWidth": 2,
|
||||||
"pointSize": 8,
|
"pointSize": 7,
|
||||||
"scaleDistribution": {
|
"scaleDistribution": {
|
||||||
"type": "linear"
|
"type": "linear"
|
||||||
},
|
},
|
||||||
@@ -496,6 +496,11 @@
|
|||||||
"selector": "spent_impressions",
|
"selector": "spent_impressions",
|
||||||
"text": "Spent on impressions",
|
"text": "Spent on impressions",
|
||||||
"type": "number"
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "spent_total",
|
||||||
|
"text": "Spent total",
|
||||||
|
"type": "number"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@@ -505,6 +510,7 @@
|
|||||||
"filters": [],
|
"filters": [],
|
||||||
"format": "table",
|
"format": "table",
|
||||||
"global_query_id": "",
|
"global_query_id": "",
|
||||||
|
"parser": "backend",
|
||||||
"refId": "A",
|
"refId": "A",
|
||||||
"root_selector": "",
|
"root_selector": "",
|
||||||
"source": "url",
|
"source": "url",
|
||||||
@@ -520,16 +526,746 @@
|
|||||||
"transparent": true,
|
"transparent": true,
|
||||||
"type": "trend"
|
"type": "trend"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"datasource": {
|
||||||
|
"type": "yesoreyeram-infinity-datasource",
|
||||||
|
"uid": "infinity"
|
||||||
|
},
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"color": {
|
||||||
|
"mode": "palette-classic"
|
||||||
|
},
|
||||||
|
"custom": {
|
||||||
|
"axisBorderShow": true,
|
||||||
|
"axisCenteredZero": false,
|
||||||
|
"axisColorMode": "text",
|
||||||
|
"axisLabel": "",
|
||||||
|
"axisPlacement": "right",
|
||||||
|
"axisSoftMax": 100,
|
||||||
|
"barAlignment": 0,
|
||||||
|
"barWidthFactor": 0.6,
|
||||||
|
"drawStyle": "line",
|
||||||
|
"fillOpacity": 6,
|
||||||
|
"gradientMode": "none",
|
||||||
|
"hideFrom": {
|
||||||
|
"legend": false,
|
||||||
|
"tooltip": false,
|
||||||
|
"viz": false
|
||||||
|
},
|
||||||
|
"insertNulls": false,
|
||||||
|
"lineInterpolation": "smooth",
|
||||||
|
"lineStyle": {
|
||||||
|
"fill": "solid"
|
||||||
|
},
|
||||||
|
"lineWidth": 3,
|
||||||
|
"pointSize": 8,
|
||||||
|
"scaleDistribution": {
|
||||||
|
"type": "linear"
|
||||||
|
},
|
||||||
|
"showPoints": "always",
|
||||||
|
"spanNulls": true,
|
||||||
|
"stacking": {
|
||||||
|
"group": "A",
|
||||||
|
"mode": "none"
|
||||||
|
},
|
||||||
|
"thresholdsStyle": {
|
||||||
|
"mode": "off"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mappings": [],
|
||||||
|
"thresholds": {
|
||||||
|
"mode": "absolute",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"color": "green",
|
||||||
|
"value": null
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"unit": "none"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"gridPos": {
|
||||||
|
"h": 8,
|
||||||
|
"w": 24,
|
||||||
|
"x": 0,
|
||||||
|
"y": 25
|
||||||
|
},
|
||||||
|
"id": 10,
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"calcs": [],
|
||||||
|
"displayMode": "list",
|
||||||
|
"placement": "bottom",
|
||||||
|
"showLegend": true,
|
||||||
|
"sortBy": "Name",
|
||||||
|
"sortDesc": false
|
||||||
|
},
|
||||||
|
"tooltip": {
|
||||||
|
"hideZeros": false,
|
||||||
|
"mode": "multi",
|
||||||
|
"sort": "none"
|
||||||
|
},
|
||||||
|
"xField": "Date"
|
||||||
|
},
|
||||||
|
"pluginVersion": "11.5.0",
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"columns": [
|
||||||
|
{
|
||||||
|
"selector": "date",
|
||||||
|
"text": "Date",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "conversion",
|
||||||
|
"text": "Conversion, %",
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"datasource": {
|
||||||
|
"type": "yesoreyeram-infinity-datasource",
|
||||||
|
"uid": "infinity"
|
||||||
|
},
|
||||||
|
"filters": [],
|
||||||
|
"format": "table",
|
||||||
|
"global_query_id": "",
|
||||||
|
"parser": "backend",
|
||||||
|
"refId": "A",
|
||||||
|
"root_selector": "",
|
||||||
|
"source": "url",
|
||||||
|
"type": "json",
|
||||||
|
"url": "http://backend:8080/stats/advertisers/$advertiser_id/campaigns/daily",
|
||||||
|
"url_options": {
|
||||||
|
"data": "",
|
||||||
|
"method": "GET"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"title": "Daily conversion statistics",
|
||||||
|
"transparent": true,
|
||||||
|
"type": "trend"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"collapsed": true,
|
"collapsed": true,
|
||||||
"gridPos": {
|
"gridPos": {
|
||||||
"h": 1,
|
"h": 1,
|
||||||
"w": 24,
|
"w": 24,
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 25
|
"y": 33
|
||||||
},
|
},
|
||||||
"id": 9,
|
"id": 9,
|
||||||
"panels": [],
|
"panels": [
|
||||||
|
{
|
||||||
|
"datasource": {
|
||||||
|
"type": "yesoreyeram-infinity-datasource",
|
||||||
|
"uid": "infinity"
|
||||||
|
},
|
||||||
|
"description": "Statistics for all time",
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"color": {
|
||||||
|
"mode": "thresholds"
|
||||||
|
},
|
||||||
|
"custom": {
|
||||||
|
"align": "center",
|
||||||
|
"cellOptions": {
|
||||||
|
"type": "auto",
|
||||||
|
"wrapText": true
|
||||||
|
},
|
||||||
|
"filterable": false,
|
||||||
|
"inspect": false
|
||||||
|
},
|
||||||
|
"mappings": [],
|
||||||
|
"thresholds": {
|
||||||
|
"mode": "percentage",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"color": "green"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"gridPos": {
|
||||||
|
"h": 12,
|
||||||
|
"w": 7,
|
||||||
|
"x": 0,
|
||||||
|
"y": 34
|
||||||
|
},
|
||||||
|
"id": 11,
|
||||||
|
"options": {
|
||||||
|
"cellHeight": "md",
|
||||||
|
"footer": {
|
||||||
|
"countRows": false,
|
||||||
|
"fields": "",
|
||||||
|
"reducer": ["sum"],
|
||||||
|
"show": false
|
||||||
|
},
|
||||||
|
"frameIndex": 1,
|
||||||
|
"showHeader": true
|
||||||
|
},
|
||||||
|
"pluginVersion": "11.5.0",
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"columns": [
|
||||||
|
{
|
||||||
|
"selector": "impressions_count",
|
||||||
|
"text": "Impressions count",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "clicks_count",
|
||||||
|
"text": "Clicks count",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "spent_impressions",
|
||||||
|
"text": "Spent on impressions",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "spent_clicks",
|
||||||
|
"text": "Spent on clicks",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "spent_total",
|
||||||
|
"text": "Spent total",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "conversion",
|
||||||
|
"text": " Conversion, %",
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"computed_columns": [],
|
||||||
|
"datasource": {
|
||||||
|
"type": "yesoreyeram-infinity-datasource",
|
||||||
|
"uid": "infinity"
|
||||||
|
},
|
||||||
|
"filters": [],
|
||||||
|
"format": "as-is",
|
||||||
|
"global_query_id": "",
|
||||||
|
"hide": false,
|
||||||
|
"pagination_mode": "none",
|
||||||
|
"parser": "backend",
|
||||||
|
"refId": "Get stats",
|
||||||
|
"root_selector": "",
|
||||||
|
"source": "url",
|
||||||
|
"summarizeAlias": "",
|
||||||
|
"type": "json",
|
||||||
|
"url": "http://backend:8080/stats/campaigns/$campaign_id",
|
||||||
|
"url_options": {
|
||||||
|
"data": "",
|
||||||
|
"method": "GET",
|
||||||
|
"params": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"title": "Overall campaign statistics",
|
||||||
|
"transformations": [
|
||||||
|
{
|
||||||
|
"id": "transpose",
|
||||||
|
"options": {
|
||||||
|
"firstFieldName": "Metric"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "sortBy",
|
||||||
|
"options": {
|
||||||
|
"fields": {},
|
||||||
|
"sort": [
|
||||||
|
{
|
||||||
|
"desc": true,
|
||||||
|
"field": "Field"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "renameByRegex",
|
||||||
|
"options": {
|
||||||
|
"regex": "1",
|
||||||
|
"renamePattern": "Value"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"transparent": true,
|
||||||
|
"type": "table"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"datasource": {
|
||||||
|
"type": "yesoreyeram-infinity-datasource",
|
||||||
|
"uid": "infinity"
|
||||||
|
},
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"color": {
|
||||||
|
"mode": "palette-classic"
|
||||||
|
},
|
||||||
|
"custom": {
|
||||||
|
"axisBorderShow": true,
|
||||||
|
"axisCenteredZero": false,
|
||||||
|
"axisColorMode": "text",
|
||||||
|
"axisLabel": "Amount",
|
||||||
|
"axisPlacement": "right",
|
||||||
|
"barAlignment": 0,
|
||||||
|
"barWidthFactor": 0.6,
|
||||||
|
"drawStyle": "line",
|
||||||
|
"fillOpacity": 8,
|
||||||
|
"gradientMode": "opacity",
|
||||||
|
"hideFrom": {
|
||||||
|
"legend": false,
|
||||||
|
"tooltip": false,
|
||||||
|
"viz": false
|
||||||
|
},
|
||||||
|
"insertNulls": false,
|
||||||
|
"lineInterpolation": "smooth",
|
||||||
|
"lineStyle": {
|
||||||
|
"fill": "solid"
|
||||||
|
},
|
||||||
|
"lineWidth": 3,
|
||||||
|
"pointSize": 8,
|
||||||
|
"scaleDistribution": {
|
||||||
|
"type": "linear"
|
||||||
|
},
|
||||||
|
"showPoints": "always",
|
||||||
|
"spanNulls": true,
|
||||||
|
"stacking": {
|
||||||
|
"group": "A",
|
||||||
|
"mode": "none"
|
||||||
|
},
|
||||||
|
"thresholdsStyle": {
|
||||||
|
"mode": "off"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mappings": [],
|
||||||
|
"thresholds": {
|
||||||
|
"mode": "absolute",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"color": "green"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"color": "red",
|
||||||
|
"value": 80
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"unit": "none"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"gridPos": {
|
||||||
|
"h": 12,
|
||||||
|
"w": 17,
|
||||||
|
"x": 7,
|
||||||
|
"y": 34
|
||||||
|
},
|
||||||
|
"id": 12,
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"calcs": [],
|
||||||
|
"displayMode": "list",
|
||||||
|
"placement": "bottom",
|
||||||
|
"showLegend": true,
|
||||||
|
"sortBy": "Name",
|
||||||
|
"sortDesc": true
|
||||||
|
},
|
||||||
|
"tooltip": {
|
||||||
|
"hideZeros": false,
|
||||||
|
"mode": "multi",
|
||||||
|
"sort": "none"
|
||||||
|
},
|
||||||
|
"xField": "Date"
|
||||||
|
},
|
||||||
|
"pluginVersion": "11.5.0",
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"columns": [
|
||||||
|
{
|
||||||
|
"selector": "date",
|
||||||
|
"text": "Date",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "impressions_count",
|
||||||
|
"text": "Impressions count",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "clicks_count",
|
||||||
|
"text": "Clicks count",
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"datasource": {
|
||||||
|
"type": "yesoreyeram-infinity-datasource",
|
||||||
|
"uid": "infinity"
|
||||||
|
},
|
||||||
|
"filters": [],
|
||||||
|
"format": "table",
|
||||||
|
"global_query_id": "",
|
||||||
|
"refId": "A",
|
||||||
|
"root_selector": "",
|
||||||
|
"source": "url",
|
||||||
|
"type": "json",
|
||||||
|
"url": "http://backend:8080/stats/campaigns/$campaign_id/daily",
|
||||||
|
"url_options": {
|
||||||
|
"data": "",
|
||||||
|
"method": "GET"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"title": "Daily clicks and impressions statistics",
|
||||||
|
"transparent": true,
|
||||||
|
"type": "trend"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"datasource": {
|
||||||
|
"type": "yesoreyeram-infinity-datasource",
|
||||||
|
"uid": "infinity"
|
||||||
|
},
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"color": {
|
||||||
|
"mode": "palette-classic"
|
||||||
|
},
|
||||||
|
"custom": {
|
||||||
|
"hideFrom": {
|
||||||
|
"legend": false,
|
||||||
|
"tooltip": false,
|
||||||
|
"viz": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mappings": []
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"gridPos": {
|
||||||
|
"h": 12,
|
||||||
|
"w": 7,
|
||||||
|
"x": 0,
|
||||||
|
"y": 46
|
||||||
|
},
|
||||||
|
"id": 13,
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"displayMode": "list",
|
||||||
|
"placement": "bottom",
|
||||||
|
"showLegend": true
|
||||||
|
},
|
||||||
|
"pieType": "pie",
|
||||||
|
"reduceOptions": {
|
||||||
|
"calcs": ["lastNotNull"],
|
||||||
|
"fields": "",
|
||||||
|
"values": false
|
||||||
|
},
|
||||||
|
"tooltip": {
|
||||||
|
"hideZeros": false,
|
||||||
|
"mode": "single",
|
||||||
|
"sort": "none"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"pluginVersion": "11.5.0",
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"columns": [
|
||||||
|
{
|
||||||
|
"selector": "spent_clicks",
|
||||||
|
"text": "Spent on clicks",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "spent_impressions",
|
||||||
|
"text": "Spent on impressions",
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"datasource": {
|
||||||
|
"type": "yesoreyeram-infinity-datasource",
|
||||||
|
"uid": "infinity"
|
||||||
|
},
|
||||||
|
"filters": [],
|
||||||
|
"format": "table",
|
||||||
|
"global_query_id": "",
|
||||||
|
"parser": "backend",
|
||||||
|
"refId": "A",
|
||||||
|
"root_selector": "",
|
||||||
|
"source": "url",
|
||||||
|
"type": "json",
|
||||||
|
"url": "http://backend:8080/stats/campaigns/$campaign_id",
|
||||||
|
"url_options": {
|
||||||
|
"data": "",
|
||||||
|
"method": "GET"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"title": "Allocation of expenses",
|
||||||
|
"transparent": true,
|
||||||
|
"type": "piechart"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"datasource": {
|
||||||
|
"type": "yesoreyeram-infinity-datasource",
|
||||||
|
"uid": "infinity"
|
||||||
|
},
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"color": {
|
||||||
|
"mode": "palette-classic"
|
||||||
|
},
|
||||||
|
"custom": {
|
||||||
|
"axisBorderShow": true,
|
||||||
|
"axisCenteredZero": false,
|
||||||
|
"axisColorMode": "text",
|
||||||
|
"axisLabel": "",
|
||||||
|
"axisPlacement": "right",
|
||||||
|
"barAlignment": 0,
|
||||||
|
"barWidthFactor": 0.6,
|
||||||
|
"drawStyle": "line",
|
||||||
|
"fillOpacity": 6,
|
||||||
|
"gradientMode": "none",
|
||||||
|
"hideFrom": {
|
||||||
|
"legend": false,
|
||||||
|
"tooltip": false,
|
||||||
|
"viz": false
|
||||||
|
},
|
||||||
|
"insertNulls": false,
|
||||||
|
"lineInterpolation": "smooth",
|
||||||
|
"lineStyle": {
|
||||||
|
"fill": "solid"
|
||||||
|
},
|
||||||
|
"lineWidth": 2,
|
||||||
|
"pointSize": 7,
|
||||||
|
"scaleDistribution": {
|
||||||
|
"type": "linear"
|
||||||
|
},
|
||||||
|
"showPoints": "always",
|
||||||
|
"spanNulls": true,
|
||||||
|
"stacking": {
|
||||||
|
"group": "A",
|
||||||
|
"mode": "none"
|
||||||
|
},
|
||||||
|
"thresholdsStyle": {
|
||||||
|
"mode": "off"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mappings": [],
|
||||||
|
"thresholds": {
|
||||||
|
"mode": "absolute",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"color": "green"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"color": "red",
|
||||||
|
"value": 80
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"unit": "none"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"gridPos": {
|
||||||
|
"h": 12,
|
||||||
|
"w": 17,
|
||||||
|
"x": 7,
|
||||||
|
"y": 46
|
||||||
|
},
|
||||||
|
"id": 14,
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"calcs": [],
|
||||||
|
"displayMode": "list",
|
||||||
|
"placement": "bottom",
|
||||||
|
"showLegend": false,
|
||||||
|
"sortBy": "Name",
|
||||||
|
"sortDesc": false
|
||||||
|
},
|
||||||
|
"tooltip": {
|
||||||
|
"hideZeros": false,
|
||||||
|
"mode": "multi",
|
||||||
|
"sort": "none"
|
||||||
|
},
|
||||||
|
"xField": "Date"
|
||||||
|
},
|
||||||
|
"pluginVersion": "11.5.0",
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"columns": [
|
||||||
|
{
|
||||||
|
"selector": "date",
|
||||||
|
"text": "Date",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "spent_clicks",
|
||||||
|
"text": "Spent on clicks",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "spent_impressions",
|
||||||
|
"text": "Spent on impressions",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "spent_total",
|
||||||
|
"text": "Spent total",
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"datasource": {
|
||||||
|
"type": "yesoreyeram-infinity-datasource",
|
||||||
|
"uid": "infinity"
|
||||||
|
},
|
||||||
|
"filters": [],
|
||||||
|
"format": "table",
|
||||||
|
"global_query_id": "",
|
||||||
|
"parser": "backend",
|
||||||
|
"refId": "A",
|
||||||
|
"root_selector": "",
|
||||||
|
"source": "url",
|
||||||
|
"type": "json",
|
||||||
|
"url": "http://backend:8080/stats/campaigns/$campaign_id/daily",
|
||||||
|
"url_options": {
|
||||||
|
"data": "",
|
||||||
|
"method": "GET"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"title": "Daily expense statistics",
|
||||||
|
"transparent": true,
|
||||||
|
"type": "trend"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"datasource": {
|
||||||
|
"type": "yesoreyeram-infinity-datasource",
|
||||||
|
"uid": "infinity"
|
||||||
|
},
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"color": {
|
||||||
|
"mode": "palette-classic"
|
||||||
|
},
|
||||||
|
"custom": {
|
||||||
|
"axisBorderShow": true,
|
||||||
|
"axisCenteredZero": false,
|
||||||
|
"axisColorMode": "text",
|
||||||
|
"axisLabel": "",
|
||||||
|
"axisPlacement": "right",
|
||||||
|
"axisSoftMax": 100,
|
||||||
|
"barAlignment": 0,
|
||||||
|
"barWidthFactor": 0.6,
|
||||||
|
"drawStyle": "line",
|
||||||
|
"fillOpacity": 6,
|
||||||
|
"gradientMode": "none",
|
||||||
|
"hideFrom": {
|
||||||
|
"legend": false,
|
||||||
|
"tooltip": false,
|
||||||
|
"viz": false
|
||||||
|
},
|
||||||
|
"insertNulls": false,
|
||||||
|
"lineInterpolation": "smooth",
|
||||||
|
"lineStyle": {
|
||||||
|
"fill": "solid"
|
||||||
|
},
|
||||||
|
"lineWidth": 3,
|
||||||
|
"pointSize": 8,
|
||||||
|
"scaleDistribution": {
|
||||||
|
"type": "linear"
|
||||||
|
},
|
||||||
|
"showPoints": "always",
|
||||||
|
"spanNulls": true,
|
||||||
|
"stacking": {
|
||||||
|
"group": "A",
|
||||||
|
"mode": "none"
|
||||||
|
},
|
||||||
|
"thresholdsStyle": {
|
||||||
|
"mode": "off"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mappings": [],
|
||||||
|
"thresholds": {
|
||||||
|
"mode": "absolute",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"color": "green"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"unit": "none"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"gridPos": {
|
||||||
|
"h": 8,
|
||||||
|
"w": 24,
|
||||||
|
"x": 0,
|
||||||
|
"y": 58
|
||||||
|
},
|
||||||
|
"id": 15,
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"calcs": [],
|
||||||
|
"displayMode": "list",
|
||||||
|
"placement": "bottom",
|
||||||
|
"showLegend": true,
|
||||||
|
"sortBy": "Name",
|
||||||
|
"sortDesc": false
|
||||||
|
},
|
||||||
|
"tooltip": {
|
||||||
|
"hideZeros": false,
|
||||||
|
"mode": "multi",
|
||||||
|
"sort": "none"
|
||||||
|
},
|
||||||
|
"xField": "Date"
|
||||||
|
},
|
||||||
|
"pluginVersion": "11.5.0",
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"columns": [
|
||||||
|
{
|
||||||
|
"selector": "date",
|
||||||
|
"text": "Date",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "conversion",
|
||||||
|
"text": "Conversion, %",
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"datasource": {
|
||||||
|
"type": "yesoreyeram-infinity-datasource",
|
||||||
|
"uid": "infinity"
|
||||||
|
},
|
||||||
|
"filters": [],
|
||||||
|
"format": "table",
|
||||||
|
"global_query_id": "",
|
||||||
|
"parser": "backend",
|
||||||
|
"refId": "A",
|
||||||
|
"root_selector": "",
|
||||||
|
"source": "url",
|
||||||
|
"type": "json",
|
||||||
|
"url": "http://backend:8080/stats/campaigns/$campaign_id/daily",
|
||||||
|
"url_options": {
|
||||||
|
"data": "",
|
||||||
|
"method": "GET"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"title": "Daily conversion statistics",
|
||||||
|
"transparent": true,
|
||||||
|
"type": "trend"
|
||||||
|
}
|
||||||
|
],
|
||||||
"repeat": "campaign_id",
|
"repeat": "campaign_id",
|
||||||
"title": "Campaign: $campaign_id",
|
"title": "Campaign: $campaign_id",
|
||||||
"type": "row"
|
"type": "row"
|
||||||
@@ -561,15 +1297,15 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"current": {
|
"current": {
|
||||||
"text": "All",
|
"text": [],
|
||||||
"value": "$__all"
|
"value": []
|
||||||
},
|
},
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "yesoreyeram-infinity-datasource",
|
"type": "yesoreyeram-infinity-datasource",
|
||||||
"uid": "infinity"
|
"uid": "infinity"
|
||||||
},
|
},
|
||||||
"definition": "",
|
"definition": "",
|
||||||
"includeAll": true,
|
"includeAll": false,
|
||||||
"label": "Choose campaign/s",
|
"label": "Choose campaign/s",
|
||||||
"multi": true,
|
"multi": true,
|
||||||
"name": "campaign_id",
|
"name": "campaign_id",
|
||||||
@@ -617,7 +1353,7 @@
|
|||||||
},
|
},
|
||||||
"timezone": "utc",
|
"timezone": "utc",
|
||||||
"title": "Statistics",
|
"title": "Statistics",
|
||||||
"uid": "adnova-statistics",
|
"uid": "adnova-statisticss",
|
||||||
"version": 1,
|
"version": 16,
|
||||||
"weekStart": "monday"
|
"weekStart": "monday"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user