oracle / oci-grafana-metrics

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

oci_vcnip > SubnetIPUtilization not populating correctly #285

Open bkonicek opened 3 months ago

bkonicek commented 3 months ago

I have a VCN with 2 subnets. When I look at IP Address Insights in the OCI console it shows one subnet is 2.34% utilized and the other is 1.95% utilized.

When I query this metric in Grafana it shows the values alternating or even matching across both subnets at different time series so it looks like:

time {region="us-ashburn-1", tenancy="DEFAULT", unique_id="$SUBNET1"} {region="us-ashburn-1", tenancy="DEFAULT", unique_id="$SUBNET2"}
2024-07-09 14:43:00 2.34 2.34
2024-07-09 14:54:00 2.34 1.95
2024-07-09 15:06:00 1.95 1.95
2024-07-09 15:17:00 2.34 2.34

When I view the same metrics in OCI Metrics Explorer each subnet's respective value stays constant and does not change over the same time period., as you would expect.

I'm on Grafana 11.1.0, oci-metrics-datasource plugin v5.5.1

mamorett commented 2 months ago

Pretty hard to tell you where can be the issue here. plugin is not doing transofmration on data coming from the oci backend. Can you try a similar scenario but with a different metric namespace to see if the problem persist ? and in this same metric namespace, did you try without using template var ? Thanks.