- What Grafana version and what operating system are you using?
v10.4.15
- What are you trying to achieve?
I want to create timeseries of brightadata balance over time.
- How are you trying to achieve it?
Using Infinity Data Source - By calling Brightdata’s API for total balance, i am getting balance in response JSON.
- What happened?
There is no timestamp in response json so it could create timeseries (after some time) from it.
- What did you expect to happen?
To automatically fill up timestamp as system’s time if there is no such timestamp in json response.
- Can you copy/paste the configuration(s) that you are having problems with?
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 115,
"links": [],
"panels": [
{
"datasource": {
"type": "yesoreyeram-infinity-datasource",
"uid": "aebgij08c3g1sa"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 0
},
"id": 1,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true
},
"pluginVersion": "10.4.15",
"targets": [
{
"columns": [],
"datasource": {
"type": "yesoreyeram-infinity-datasource",
"uid": "aebgij08c3g1sa"
},
"filters": [],
"format": "table",
"global_query_id": "",
"parser": "backend",
"refId": "A",
"root_selector": "",
"source": "url",
"type": "json",
"url": "https://api.brightdata.com/customer/balance",
"url_options": {
"data": "",
"headers": [
{
"key": "Authorization",
"value": "Bearer REDACTED"
}
],
"method": "GET"
}
}
],
"title": "Brightdata total balance",
"type": "table"
}
],
"schemaVersion": 39,
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "Providers balances",
"uid": "aebyg43jn8hz4c",
"version": 2,
"weekStart": ""
}
- Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
Not really. When i turn it into timeseries it shows: Data is missing a time field
- Did you follow any online instructions? If so, what is the URL?
There is basically no guides or forum posts regarding this topic.