#Access to manually created performance views via REST

1 messages · Page 1 of 1 (latest)

marsh fox
#

Is it possible to access a "saved performance view" via REST in AIQUM?
I'd like to provide certain departments access to views that I can created so that they can take appropriate actions. Sending them as a report isn't really very optimal.

broken harness
marsh fox
#

a way to keep track of orphanded pvc's, hehe

#

or let the k8s guys do that

valid creek
#

doesn't look like it. instead, you would just select the metrics you want via api rather then trying to call a specific view.

#

actually, looks like it just might not be public.

valid creek
#

ok, played with it a bit, and i've only been able to make it work for capacity in a limited way
but even with the view name, it doesn't limit to the columns in the view. if you want to do that, add another param for the columns you want.

something like this:

#

with specific columns:

#

if you need more flexibility, or the performance metrics, just call that api instead of trying to use a view.

vale folio
#

Check out TR-4709 - it's a bit old but its possible to connect directly to the database with a Read Only account and query against the views.

marsh fox
#

between the both of you, it would be cool if "saved views" could simply be queried via REST... perhaps something to think about... the storage admin could then (much like a Graphana view, but here it's just a list of volumes with certain characteristics) create views that are useful for certain user groups...

#

i know there is a bunch of other aspects about who should be able to see which views, etc, but at this point just exposing the saved views would be a start

#

one could later add which non-admin users can see this view

marsh fox
#

one can actually use the "analytics" namespace to get some of the correct data, but there's a field that's undocumented "period: " ... not sure if that's days or hours and one doesn't seem to be able specify this "period"