oracle / oci-grafana-metrics

Grafana datasource plugin for OCI metrics
https://grafana.com/grafana/plugins/oci-metrics-datasource
Universal Permissive License v1.0
79 stars 40 forks source link

odd behavior when auto refresh interval #297

Open sdvidal opened 2 months ago

sdvidal commented 2 months ago

Hi, I have some panels for a goldengate deployment and at every refreshing cycle, most of the time I do not have all replicat processes displayed. It looks like OCI plugin does send all data for a moment. Is this a expected behavior ? thank you!

sdvidal commented 2 months ago

an example: oci-metric-example

mamorett commented 2 months ago

Hi. Can you show one of those panel in edit mode ?

sdvidal commented 2 months ago

Hi Moretti, sure, here is it : data: image

filter (otherwise deployment name is displayed as well) : image

regards,

mamorett commented 2 months ago

Hi. Did you try with different intervals ? Another thing I would try is to disable the LEGEND FORMAT. Sometimes gives weird output in combination with Transform Data

sdvidal commented 2 months ago

Hi, well, auto or manual refresh shows same behavior. No change if disabling LEGEND FORMAT. This is a grafana version 11 , I will try a test with grafana 10. regards,

mamorett commented 2 months ago

you may also want to upgrade the plugin. We released 6.0 few days ago, to see if that help. Honestly I could not reproduce same issue in my lab.

sdvidal commented 2 months ago

Oh, ok, I was not aware...I will let you know.

sdvidal commented 2 months ago

Hi, nothing yet ...I have tried grafana 10 and plugin versions since 5.5. Now I will try OSS version (so far is grafana enterprise). I have noticed those messages at log :

logger=plugin.oci-metrics-datasource t=2024-09-20T10:06:23.66542007-03:00 level=error msg=generateCustomMetricLabel NoResourceID="No valid resourceID aggregator found: ocid1.goldengatedeployment...." logger=plugin.oci-metrics-datasource t=2024-09-20T10:06:23.665569364-03:00 level=error msg="No valid resourceID found in dimensions" metricDataValue.name= logger=plugin.oci-metrics-datasource t=2024-09-20T10:06:23.665701134-03:00 level=error msg=client GetDimensionsLabels="fetching the dimension under compartment 'ocid1.compartment.oc1.....' for namespace 'oci_goldengate' and metric 'ReplicatLag' to be used as labels" logger=plugin.oci-metrics-datasource t=2024-09-20T10:06:23.665823114-03:00 level=warn msg=client GetDimensions="getting the data from cache" logger=plugin.oci-metrics-datasource t=2024-09-20T10:06:23.665992215-03:00 level=error msg=generateCustomMetricLabel NoResourceID="No valid resourceID aggregator found: RNS1" logger=plugin.oci-metrics-datasource t=2024-09-20T10:06:23.666141417-03:00 level=error msg="No valid resourceID found in dimensions" metricDataValue.name=

I am trying to understand why those "no valid resourceID" messages. regards,

pantherra commented 2 days ago

I have exactly same situation. Grafana OSS 11.3, Plugin version 6.0.2 - latest. Every time I've refresh dashboard / retrieve metrics through plugin - every time metrics name changes.