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 40 forks source link

Namespace pulldown empty when Policy with "where target.metrics.namespace=<namespace>" clause used #217

Closed aucado closed 1 year ago

aucado commented 1 year ago

I got the query builder working and the pulldown populates with my namespaces in the available compartment. However when I added the where clause to my policy statement it blocks all of the namespaces including the one allowed by the where clause.

mamorett commented 1 year ago

Hi. Can you share the policy statement you applied ?

aucado commented 1 year ago

With some further testing it seems that in the policy statement 'allow group \<group> to read metrics in compartment \<compartment> where target.metrics.namespace='\<namespace>' used the namespace value can only be oci supported metrics and was only not working for my custom metric namespace name and behaved the same when using the metrics explorer in oci monitoring.