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 - w/ MySQL DB  #100

@ghost

Description

Hi all,

I'm trying to get my DB stats on the wroldmap plugin, but i'm using MySQL query.

AS you can see my query :

SELECT
UNIX_TIMESTAMP(when) as time_sec,
(
SELECT FORMAT( COUNT( * ) , 0 ) AS count FROM logged
) as value,
gateway as metric
FROM logged
WHERE $__timeFilter(when)
ORDER BY when ASC

I do a count on my table logged to get all user connected but i don't have column to identify the location however i've "gateway" column which identify the gateway where user is logged but doesn't work.
How i can use my column gateway as location (France, Espagne,...)

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions