Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Influxdb2, data formatting and plugin configuration #96

Open
maxdd opened this issue Apr 1, 2021 · 5 comments
Open

Influxdb2, data formatting and plugin configuration #96

maxdd opened this issue Apr 1, 2021 · 5 comments

Comments

@maxdd
Copy link

maxdd commented Apr 1, 2021

Hi,
i noticed this plugin after struggling with worldmap-panel.
I admit there is a little bit of confusion between the two in the sense that i have no idea what are the differences nor which of this is maintained.

In any case i have a influxdb2 setup with grafana and i'm using a python script with influxdb-client which create a point

p = Point(measurement_name).tag("key", ISO) \
		.tag("latitude", Lat) \
		.tag("longitude", Long) \
		.tag("Domain", Domain) \
		.tag("City", City) \
		.tag("State", State) \
		.tag("Country", Country) \
		.tag("IP", IP) \
		.field("Domain", Domain) \
		.field("latitude", Lat) \
		.field("longitude", Long) \
		.field("City", City) \
		.field("State", State) \
		.field("key", ISO) \
		.field("name", Country) \
		.field("IP", IP) \
		.field("duration", duration) \
		.field("metric", 1) 

I've tried different combinations of queries e.g.

from(bucket: "npm-graf")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["_measurement"] == "ReverseProxyConnections" and r["_field"] == "IP")
  |> group(columns: ["IP", "latitude", "longitude"], mode:"by")
  |> count(column: "_value")

image

but i have yet to find a way to make it work (i've just started with grafana).
Long story short is there/can you provide a clear example that shows how the timeseries/table should be (e.g. influxdb table) and how the panel shall be configured?

Regards,

@maxdd
Copy link
Author

maxdd commented Jul 1, 2021

Any help?

@amotl
Copy link

amotl commented Jul 1, 2021 via email

@amotl
Copy link

amotl commented Jul 1, 2021 via email

@maxdd
Copy link
Author

maxdd commented Jul 16, 2021

@amotl i guess it's time to ping you back :D

@maxdd
Copy link
Author

maxdd commented Jul 27, 2021

@amotl any feedback on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants