You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my $url = 'http://openc3-prometheus:9090/api/v1/query?query=avg+by%28instance%29%28avg_over_time%28aws_elasticache_database_memory_usage_percentage_maximum%5B1w%5D%29%29';
my $res = $ua->get( $url );
die sprintf( "http code %s", $res->code ) unless $res->is_success;
my $v = eval{ JSON::decode_json $res->decoded_content };
die "data no JSON: $@" if $@;
die "status no success" unless $v->{status} && $v->{status} eq 'success';