Quantcast
Channel: InfluxDB - Grafana Labs Community Forums
Viewing all articles
Browse latest Browse all 201

Sorting IP Addresses

$
0
0

Anyone have a good solution to sorting by IP address in the correct order? I have a Flux query that is generating just a simple table in Grafana however IP’s are sorted so that the last octet is throwing everything off. For example, when sorting ascending, 10.10.10.10 appears before 10.10.10.1. 10.10.10.20 appears before 10.10.10.2, etc. In MySQL this is easy to do with casting or INET_ATON but can’t seem to find a good solution for Influxv2. Tried a few different transformations in Grafana as well without luck.

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 201

Trending Articles