Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Worldmap panel not picking up custom jsonp endpoint #58

@jfray92

Description

@jfray92

Hi there,

I've been using Grafana 4.1 for a while, and recently came across a use case for the worldmap panel. Initially, I was able to use ES as a datasource and use a geohash; however, I now need to use InfluxDb and map my "apregion" tag to a custom json file. Below is an sanitised example of the file in terms of its structure:

[{
	"key": "ABC",
	"latitude": 38.858868066651645,
	"longitude": -106.60410427663172,
	"name": "ABC"
}, {
	"key": "XYZ",
	"latitude": 41.6908947939931,
	"longitude": -84.52139427176928,
	"name": "XYZ"
}, {
	"key": "RFC",
	"latitude": 38.67701147764007,
	"longitude": -77.10139768555358,
	"name": "RFC"
}]

I can't share the exact file I'm using as its confidential, but the file successfully loads when I inspect the Sources tab in developer tools. Below is a screenshot of my configuration for the 'Worldmap' section (let's call the file http://abc.com/file.json):

screen shot 2017-01-23 at 22 59 42

The documentation is not very clear in regards to using InfluxDb as a datasource with a custom json endpoint; from this point, I'm not entirely sure how to build my query. The measurement I am using is called 'nb_transactions', the field is 'Success', and the tag which maps to the custom json file endpoint is called "apregion". Any advice as to how to build the query from here (sum of the "Success" field)?

screen shot 2017-01-24 at 11 49 50

Thanks for any help you can provide!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions