Replies: 3 comments 2 replies
-
I'm driving right now but you can find it in query response in the docs. The "pps in" should name your series |
Beta Was this translation helpful? Give feedback.
1 reply
-
You will have to investigate how it is translated to dataframe by Grafana
(link to the function is also in Readme)
However, you have an object under target and not string and I guess that's
the reason why ure getting [object] as series name
…On Fri, Feb 25, 2022, 12:07 Ray Cooke ***@***.***> wrote:
Thanks for the quick response. I get the series name under the "refId" in
the request (maybe because it's a timeseries type?). My response looks like
the following at the moment, is that incorrect?
The request I receive is as follows:
"targets": [
{
"refId": "Taiichi",
"data": {
"toStatus": "Deployed",
"projectKey": "ENG",
"teamId": 13,
"addBugsDefault": false
},
"target": "Rolling 2 week velocity",
"type": "timeseries",
"hide": false,
"datasource": "Jira Metrics"
},
The response I reply with is:
"response": [
{
"target": {
"refId": "Taiichi",
"data": {
"toStatus": "Deployed",
"projectKey": "ENG",
"teamId": 13,
"addBugsDefault": false
},
"target": "Rolling 2 week velocity",
"type": "timeseries",
"hide": false,
"datasource": "Jira Metrics"
},
"datapoints": [
[
6,
1643190563635
],
[
6,
1643192363635
],
[
8,
1645782563635
]
]
},
—
Reply to this email directly, view it on GitHub
<#233 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACQAJLRVQLHUZEQR5GIMNLU45PIXANCNFSM5PJ4KSEQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***
.com>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Yup. The format specified in readme works. You're using different format which might not be wrong, grafana supports more formats when converting to dataframe. But I still think the object in target is not supported.
… On 25. 2. 2022, at 12:14, Ray Cooke ***@***.***> wrote:
OK thanks, I'll take a look at that in more detail.
—
Reply to this email directly, view it on GitHub <#233 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AACQAJOOIKGAXOOXUVE2JXLU45P73ANCNFSM5PJ4KSEQ>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
simPod
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a custom built service that I use SimPod to communicate with to populate Grafana. When I query my source I pick the metric I want and pass through some custom JSON to define the specifics of what I want for that metric. I want to show the same metric for 4 different configurations on the same chart panel.
This works fine in that I can show 4 lines on the chart, however despite the Query names all being different, the Display Name being used for each Query in the Legend of the chart is the same, either "Value" on a TimeSeries panel or "[object Object] on a Graph panel as shown in the screenshot below.
Where is this sourced from? Is this something I can control from my data source or is it something that simPod defines? What I would like is for the Query name to be the Display Name, e.g. "Taiichi" in the example above would be seen on the chart's Legend.
A dump of the query and response data (with most of the data points removed to make it more readable) can be found here in case that's useful in diagnosing the problem.
Beta Was this translation helpful? Give feedback.
All reactions