knightss27 / grafana-network-weathermap

A fully featured and customizable network weathermap plugin for Grafana (9.0+).
https://grafana.com/grafana/plugins/knightss27-weathermap-panel/
Apache License 2.0
132 stars 6 forks source link

Issue when using a rate calculation for metrics #67

Open gavmckee80 opened 10 months ago

gavmckee80 commented 10 months ago

Describe the problem A clear and concise description of what the problem is.

I am using a VictoriaMetrics datasource.

When I calculate a rate for metrics , I am unable to visualize the result of each rate query as a distinct result.

image

image

To Reproduce Steps to reproduce the behavior (if possible):

  1. Add Victoria Metrics datasource.
  2. Add two separate queries
    
    A
    rate(interfaces_interface_state_counters_in_octets{interface_name="et-4/1/2",source="host-a"}[$__interval]) * 8

B rate(interfaces_interface_state_counters_out_octets{interface_name="et-4/1/2",source="host-a"}[$__interval]) * 8



**Expected behavior**
A clear and concise description of what you expected to happen.

A side query should chart the result of query A (rate calculation of in_octets)
![image](https://github.com/knightss27/grafana-network-weathermap/assets/17826993/f2b7a437-3283-4362-8fbc-c364c713b0dc)

Z side query should chart result of query B (rate calculation of out_octets)
![image](https://github.com/knightss27/grafana-network-weathermap/assets/17826993/0708e8c7-11aa-4d1d-a35f-64c9a51d111d)

Instead 

**Screenshots**
See above

**VERSIONS! (please complete the following information):**
 - Browser [e.g. chrome]
 - Grafana Version  9.2.7
 - Plugin Version 0.4.3
 - Victoria Metrics v0.4.0
gavmckee80 commented 10 months ago

Following up with more information

When you do a query inspection you can select a particular data frame - in this example 0 or 1

image

When the query auto populates in the A and Z link option you don't have that ability . Would it be an approach to provide access to the dataframe by number ?

image
macfly92 commented 8 months ago

Hello, I'm in the same situation, have you found a way around the problem? Best regards,

macfly92 commented 8 months ago

Ok you just have to play with Custom Legend in the Query options xD