chore(grafana): improvements to advertiser business analytics dashboard

This commit is contained in:
ITQ
2025-07-25 13:34:40 +03:00
parent a5ec3ca6cb
commit df0083e334
@@ -15,11 +15,11 @@
} }
] ]
}, },
"description": "Get daily and overall stats for your advertiser organization and your campaigns.", "description": "Get daily and overall stats for advertiser organization and campaigns.",
"editable": true, "editable": true,
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"graphTooltip": 0, "graphTooltip": 0,
"id": 1, "id": 9,
"links": [], "links": [],
"liveNow": true, "liveNow": true,
"panels": [ "panels": [
@@ -62,8 +62,7 @@
"mode": "percentage", "mode": "percentage",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
} }
] ]
} }
@@ -88,7 +87,7 @@
"frameIndex": 1, "frameIndex": 1,
"showHeader": true "showHeader": true
}, },
"pluginVersion": "11.5.0", "pluginVersion": "12.0.2",
"targets": [ "targets": [
{ {
"columns": [ "columns": [
@@ -139,7 +138,7 @@
"source": "url", "source": "url",
"summarizeAlias": "", "summarizeAlias": "",
"type": "json", "type": "json",
"url": "http://backend:8080/stats/advertisers/$advertiser_id", "url": "/stats/advertisers/$advertiser_id",
"url_options": { "url_options": {
"data": "", "data": "",
"method": "GET", "method": "GET",
@@ -229,8 +228,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
}, },
{ {
"color": "red", "color": "red",
@@ -265,7 +263,7 @@
}, },
"xField": "Date" "xField": "Date"
}, },
"pluginVersion": "11.5.0", "pluginVersion": "12.0.2",
"targets": [ "targets": [
{ {
"columns": [ "columns": [
@@ -296,7 +294,7 @@
"root_selector": "", "root_selector": "",
"source": "url", "source": "url",
"type": "json", "type": "json",
"url": "http://backend:8080/stats/advertisers/$advertiser_id/campaigns/daily", "url": "/stats/advertisers/$advertiser_id/campaigns/daily",
"url_options": { "url_options": {
"data": "", "data": "",
"method": "GET" "method": "GET"
@@ -353,7 +351,7 @@
"sort": "none" "sort": "none"
} }
}, },
"pluginVersion": "11.5.0", "pluginVersion": "12.0.2",
"targets": [ "targets": [
{ {
"columns": [ "columns": [
@@ -380,7 +378,7 @@
"root_selector": "", "root_selector": "",
"source": "url", "source": "url",
"type": "json", "type": "json",
"url": "http://backend:8080/stats/advertisers/$advertiser_id", "url": "/stats/advertisers/$advertiser_id",
"url_options": { "url_options": {
"data": "", "data": "",
"method": "GET" "method": "GET"
@@ -442,8 +440,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
}, },
{ {
"color": "red", "color": "red",
@@ -478,7 +475,7 @@
}, },
"xField": "Date" "xField": "Date"
}, },
"pluginVersion": "11.5.0", "pluginVersion": "12.0.2",
"targets": [ "targets": [
{ {
"columns": [ "columns": [
@@ -515,7 +512,7 @@
"root_selector": "", "root_selector": "",
"source": "url", "source": "url",
"type": "json", "type": "json",
"url": "http://backend:8080/stats/advertisers/$advertiser_id/campaigns/daily", "url": "/stats/advertisers/$advertiser_id/campaigns/daily",
"url_options": { "url_options": {
"data": "", "data": "",
"method": "GET" "method": "GET"
@@ -578,8 +575,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
} }
] ]
}, },
@@ -610,7 +606,7 @@
}, },
"xField": "Date" "xField": "Date"
}, },
"pluginVersion": "11.5.0", "pluginVersion": "12.0.2",
"targets": [ "targets": [
{ {
"columns": [ "columns": [
@@ -637,7 +633,7 @@
"root_selector": "", "root_selector": "",
"source": "url", "source": "url",
"type": "json", "type": "json",
"url": "http://backend:8080/stats/advertisers/$advertiser_id/campaigns/daily", "url": "/stats/advertisers/$advertiser_id/campaigns/daily",
"url_options": { "url_options": {
"data": "", "data": "",
"method": "GET" "method": "GET"
@@ -649,7 +645,7 @@
"type": "trend" "type": "trend"
}, },
{ {
"collapsed": true, "collapsed": false,
"gridPos": { "gridPos": {
"h": 1, "h": 1,
"w": 24, "w": 24,
@@ -657,7 +653,11 @@
"y": 33 "y": 33
}, },
"id": 9, "id": 9,
"panels": [ "panels": [],
"repeat": "campaign_id",
"title": "Campaign: $campaign_id",
"type": "row"
},
{ {
"datasource": { "datasource": {
"type": "yesoreyeram-infinity-datasource", "type": "yesoreyeram-infinity-datasource",
@@ -708,7 +708,7 @@
"frameIndex": 1, "frameIndex": 1,
"showHeader": true "showHeader": true
}, },
"pluginVersion": "11.5.0", "pluginVersion": "12.0.2",
"targets": [ "targets": [
{ {
"columns": [ "columns": [
@@ -759,7 +759,7 @@
"source": "url", "source": "url",
"summarizeAlias": "", "summarizeAlias": "",
"type": "json", "type": "json",
"url": "http://backend:8080/stats/campaigns/$campaign_id", "url": "/stats/campaigns/$campaign_id",
"url_options": { "url_options": {
"data": "", "data": "",
"method": "GET", "method": "GET",
@@ -884,7 +884,7 @@
}, },
"xField": "Date" "xField": "Date"
}, },
"pluginVersion": "11.5.0", "pluginVersion": "12.0.2",
"targets": [ "targets": [
{ {
"columns": [ "columns": [
@@ -915,7 +915,7 @@
"root_selector": "", "root_selector": "",
"source": "url", "source": "url",
"type": "json", "type": "json",
"url": "http://backend:8080/stats/campaigns/$campaign_id/daily", "url": "/stats/campaigns/$campaign_id/daily",
"url_options": { "url_options": {
"data": "", "data": "",
"method": "GET" "method": "GET"
@@ -972,7 +972,7 @@
"sort": "none" "sort": "none"
} }
}, },
"pluginVersion": "11.5.0", "pluginVersion": "12.0.2",
"targets": [ "targets": [
{ {
"columns": [ "columns": [
@@ -999,7 +999,7 @@
"root_selector": "", "root_selector": "",
"source": "url", "source": "url",
"type": "json", "type": "json",
"url": "http://backend:8080/stats/campaigns/$campaign_id", "url": "/stats/campaigns/$campaign_id",
"url_options": { "url_options": {
"data": "", "data": "",
"method": "GET" "method": "GET"
@@ -1096,7 +1096,7 @@
}, },
"xField": "Date" "xField": "Date"
}, },
"pluginVersion": "11.5.0", "pluginVersion": "12.0.2",
"targets": [ "targets": [
{ {
"columns": [ "columns": [
@@ -1133,7 +1133,7 @@
"root_selector": "", "root_selector": "",
"source": "url", "source": "url",
"type": "json", "type": "json",
"url": "http://backend:8080/stats/campaigns/$campaign_id/daily", "url": "/stats/campaigns/$campaign_id/daily",
"url_options": { "url_options": {
"data": "", "data": "",
"method": "GET" "method": "GET"
@@ -1227,7 +1227,7 @@
}, },
"xField": "Date" "xField": "Date"
}, },
"pluginVersion": "11.5.0", "pluginVersion": "12.0.2",
"targets": [ "targets": [
{ {
"columns": [ "columns": [
@@ -1254,7 +1254,7 @@
"root_selector": "", "root_selector": "",
"source": "url", "source": "url",
"type": "json", "type": "json",
"url": "http://backend:8080/stats/campaigns/$campaign_id/daily", "url": "/stats/campaigns/$campaign_id/daily",
"url_options": { "url_options": {
"data": "", "data": "",
"method": "GET" "method": "GET"
@@ -1266,14 +1266,9 @@
"type": "trend" "type": "trend"
} }
], ],
"repeat": "campaign_id",
"title": "Campaign: $campaign_id",
"type": "row"
}
],
"preload": false, "preload": false,
"refresh": "", "refresh": "5s",
"schemaVersion": 40, "schemaVersion": 41,
"tags": ["adnova"], "tags": ["adnova"],
"templating": { "templating": {
"list": [ "list": [
@@ -1282,7 +1277,7 @@
"text": "", "text": "",
"value": "" "value": ""
}, },
"description": "Enter your advertiser UUID", "description": "Enter advertiser UUID",
"label": "Advertiser UUID", "label": "Advertiser UUID",
"name": "advertiser_id", "name": "advertiser_id",
"options": [ "options": [
@@ -1329,7 +1324,7 @@
"root_selector": "", "root_selector": "",
"source": "url", "source": "url",
"type": "json", "type": "json",
"url": "http://backend:8080/advertisers/$advertiser_id/campaigns", "url": "/advertisers/$advertiser_id/campaigns",
"url_options": { "url_options": {
"data": "", "data": "",
"method": "GET" "method": "GET"
@@ -1349,11 +1344,12 @@
"to": "now" "to": "now"
}, },
"timepicker": { "timepicker": {
"hidden": true,
"refresh_intervals": ["5s"] "refresh_intervals": ["5s"]
}, },
"timezone": "utc", "timezone": "browser",
"title": "Statistics", "title": "Advertiser Statistics",
"uid": "adnova-statisticss", "uid": "adnova-advertiser-statistics",
"version": 16, "version": 2,
"weekStart": "monday" "weekStart": "monday"
} }