Biggest resource is html page as shown top in the image, its size is 83.6MB without gzip.
why its this big?
because it contains the data about all 25k datasource inside window.grafanaBootData. here is an example of one such datasource json object. It contains 25k such json objects
{
"id": 12835,
"uid": "dbc7490b-43fa-40dd-ab68-2e30828865c1",
"type": "prometheus",
"name": "appId",
"meta":
{
"id": "prometheus",
"type": "datasource",
"name": "Prometheus",
"info":
{
"author":
{
"name": "Grafana Labs",
"url": "https://grafana.com"
},
"description": "Open source time series database & alerting",
"links":
[
{
"name": "Learn more",
"url": "https://prometheus.io/"
}
],
"logos":
{
"small": "public/app/plugins/datasource/prometheus/img/prometheus_logo.svg",
"large": "public/app/plugins/datasource/prometheus/img/prometheus_logo.svg"
},
"build":
{},
"screenshots": null,
"version": "",
"updated": ""
},
"dependencies":
{
"grafanaDependency": "",
"grafanaVersion": "*",
"plugins":
[]
},
"includes":
[
{
"name": "Prometheus Stats",
"path": "dashboards/prometheus_stats.json",
"type": "dashboard",
"component": "",
"role": "Viewer",
"addToNav": false,
"defaultNav": false,
"slug": "",
"icon": "",
"uid": ""
},
{
"name": "Prometheus 2.0 Stats",
"path": "dashboards/prometheus_2_stats.json",
"type": "dashboard",
"component": "",
"role": "Viewer",
"addToNav": false,
"defaultNav": false,
"slug": "",
"icon": "",
"uid": ""
},
{
"name": "Grafana Stats",
"path": "dashboards/grafana_stats.json",
"type": "dashboard",
"component": "",
"role": "Viewer",
"addToNav": false,
"defaultNav": false,
"slug": "",
"icon": "",
"uid": ""
}
],
"category": "tsdb",
"preload": false,
"backend": true,
"routes":
[
{
"path": "api/v1/query",
"method": "POST",
"reqRole": "Viewer",
"url": "",
"urlParams": null,
"headers": null,
"authType": "",
"tokenAuth": null,
"jwtTokenAuth": null,
"body": null
},
{
"path": "api/v1/query_range",
"method": "POST",
"reqRole": "Viewer",
"url": "",
"urlParams": null,
"headers": null,
"authType": "",
"tokenAuth": null,
"jwtTokenAuth": null,
"body": null
},
{
"path": "api/v1/series",
"method": "POST",
"reqRole": "Viewer",
"url": "",
"urlParams": null,
"headers": null,
"authType": "",
"tokenAuth": null,
"jwtTokenAuth": null,
"body": null
},
{
"path": "api/v1/labels",
"method": "POST",
"reqRole": "Viewer",
"url": "",
"urlParams": null,
"headers": null,
"authType": "",
"tokenAuth": null,
"jwtTokenAuth": null,
"body": null
},
{
"path": "api/v1/query_exemplars",
"method": "POST",
"reqRole": "Viewer",
"url": "",
"urlParams": null,
"headers": null,
"authType": "",
"tokenAuth": null,
"jwtTokenAuth": null,
"body": null
},
{
"path": "/rules",
"method": "GET",
"reqRole": "Viewer",
"url": "",
"urlParams": null,
"headers": null,
"authType": "",
"tokenAuth": null,
"jwtTokenAuth": null,
"body": null
},
{
"path": "/rules",
"method": "POST",
"reqRole": "Editor",
"url": "",
"urlParams": null,
"headers": null,
"authType": "",
"tokenAuth": null,
"jwtTokenAuth": null,
"body": null
},
{
"path": "/rules",
"method": "DELETE",
"reqRole": "Editor",
"url": "",
"urlParams": null,
"headers": null,
"authType": "",
"tokenAuth": null,
"jwtTokenAuth": null,
"body": null
},
{
"path": "/config/v1/rules",
"method": "DELETE",
"reqRole": "Editor",
"url": "",
"urlParams": null,
"headers": null,
"authType": "",
"tokenAuth": null,
"jwtTokenAuth": null,
"body": null
},
{
"path": "/config/v1/rules",
"method": "POST",
"reqRole": "Editor",
"url": "",
"urlParams": null,
"headers": null,
"authType": "",
"tokenAuth": null,
"jwtTokenAuth": null,
"body": null
}
],
"skipDataQuery": false,
"autoEnabled": false,
"annotations": true,
"metrics": true,
"alerting": true,
"explore": false,
"tables": false,
"logs": false,
"tracing": false,
"queryOptions":
{
"minInterval": true
},
"streaming": false,
"signature": "internal",
"module": "app/plugins/datasource/prometheus/module",
"baseUrl": "public/app/plugins/datasource/prometheus"
},
"url": "/api/datasources/proxy/uid/dbc7490b-43fa-40dd-ab68-2e30828865c1",
"isDefault": false,
"access": "proxy",
"preload": false,
"module": "app/plugins/datasource/prometheus/module",
"jsonData":
{
"directUrl": "http://10.83.23.34/select/4855/prometheus"
},
"readOnly": false,
"cachingConfig":
{
"enabled": false,
"TTLMs": 0
}
}```