diff --git a/solution/infrastructure/grafana/provisioning/dashboards/AdNova/statistics.json b/solution/infrastructure/grafana/provisioning/dashboards/AdNova/statistics.json index 513142d..d3a52f5 100644 --- a/solution/infrastructure/grafana/provisioning/dashboards/AdNova/statistics.json +++ b/solution/infrastructure/grafana/provisioning/dashboards/AdNova/statistics.json @@ -19,7 +19,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 2, + "id": 1, "links": [], "liveNow": true, "panels": [ @@ -198,7 +198,7 @@ "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 8, - "gradientMode": "none", + "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, @@ -422,8 +422,8 @@ "lineStyle": { "fill": "solid" }, - "lineWidth": 3, - "pointSize": 8, + "lineWidth": 2, + "pointSize": 7, "scaleDistribution": { "type": "linear" }, @@ -496,6 +496,11 @@ "selector": "spent_impressions", "text": "Spent on impressions", "type": "number" + }, + { + "selector": "spent_total", + "text": "Spent total", + "type": "number" } ], "datasource": { @@ -505,6 +510,7 @@ "filters": [], "format": "table", "global_query_id": "", + "parser": "backend", "refId": "A", "root_selector": "", "source": "url", @@ -520,16 +526,746 @@ "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", + "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, "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 25 + "y": 33 }, "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", "title": "Campaign: $campaign_id", "type": "row" @@ -561,15 +1297,15 @@ }, { "current": { - "text": "All", - "value": "$__all" + "text": [], + "value": [] }, "datasource": { "type": "yesoreyeram-infinity-datasource", "uid": "infinity" }, "definition": "", - "includeAll": true, + "includeAll": false, "label": "Choose campaign/s", "multi": true, "name": "campaign_id", @@ -617,7 +1353,7 @@ }, "timezone": "utc", "title": "Statistics", - "uid": "adnova-statistics", - "version": 1, + "uid": "adnova-statisticss", + "version": 16, "weekStart": "monday" }