$ grafana-cli plugins install grafana-worldmap-panel
Or install a plugin under development which replaces the map by Google Maps Satellite View with the following command.
$ sudo grafana.grafana-cli -pluginUrl https://github.com/ammpio/worldmap-panel/archive/master.zip plugins install grafana-worldmap-panel
Field | Value |
---|---|
Location Data | table |
Aggregation | total |
Field | Value |
---|---|
Table Query Format | coordinates |
Location Name Field | value |
Metric Field | value |
Latitude Field | latitude |
Longitude Field | longitude |
SELECT
ts AS "time",
latitude,
longitude,
value
FROM sensor_data
WHERE
$__timeFilter(ts)
ORDER BY 1
create_table "sensor_data", force: :cascade do |t|
t.datetime "ts", precision: nil
t.integer "value"
t.float "latitude"
t.float "longitude"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
You can create the above schema by the following command.
$ rails generate model SensorDatum ts:timestamp value:integer latitude:float longitude:float