- What Grafana version and what operating system are you using?
Grafana 9.2.4 in docker on Ubuntu
- What are you trying to achieve?
I would like to create log-style graphs from a json api.
I have previously used loki/promtail datasources and count_over_time to turn log lines into numbers.
I would like to start creating other visualisations based on this data, e.g.
- time series graph showing (count of entries by ‘ip address’) Vs time
- time series graph showing (count of entries by ‘type’ ) Vs time
- How are you trying to achieve it?
My API source requires OAuth2, so I’ve used Infinity Datasource to access this. I’m then trying to create a visualisation similar to as if I’d accessed the datasource via Loki/Promtail.
- What happened?
I’m unable to create timeseries graphs because I cannot figure out how to create a number value.
- What did you expect to happen?
Use a transform, or even the count_over_time selector to create numbers from my data.
- Can you copy/paste the configuration(s) that you are having problems with?
No - I don’t have anything successful. I’d like help creating configurations.
- Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
No errors.
- Did you follow any online instructions? If so, what is the URL?
No - I can’t find any tutorials.
I am successfully receiving a stream of .json in the following example format into the Infinity Datasource plugin:
{
"continuationToken": null,
"data": [
{
"actingUserId": "83cd55a9-95bf-4eb5-a221-af4900c54bf7",
"collectionId": null,
"date": "2022-11-10T18:10:20.8466667Z",
"device": 10,
"groupId": null,
"installationId": null,
"ipAddress": "xxx.xxx.xxx.xxx",
"itemId": "a8478aa6-5dc7-4973-b8f9-af49012b78fb",
"memberId": null,
"object": "event",
"policyId": null,
"type": 1100
},
{
"actingUserId": "83cd55a9-95bf-4eb5-a221-af4900c54bf7",
"collectionId": null,
"date": "2022-11-10T15:00:29.8533333Z",
"device": 10,
"groupId": null,
"installationId": null,
"ipAddress": "xxx.xxx.xxx.xxx",
"itemId": "4bfa6ac8-d26c-48b0-b8a3-af4900f7540b",
"memberId": null,
"object": "event",
"policyId": null,
"type": 1100
},
{
"actingUserId": "83cd55a9-95bf-4eb5-a221-af4900c54bf7",
"collectionId": null,
"date": "2022-11-10T14:58:41.94Z",
"device": 10,
"groupId": null,
"installationId": null,
"ipAddress": "xxx.xxx.xxx.xxx",
"itemId": null,
"memberId": null,
"object": "event",
"policyId": null,
"type": 1600
}
],
"object": "list"
}