diff --git a/src/jetstream/plugins/metrics/cloud_foundry.go b/src/jetstream/plugins/metrics/cloud_foundry.go index d647ccb3f6..b239430e8b 100644 --- a/src/jetstream/plugins/metrics/cloud_foundry.go +++ b/src/jetstream/plugins/metrics/cloud_foundry.go @@ -28,8 +28,8 @@ func (m *MetricsSpecification) getCloudFoundryAppMetrics(c echo.Context) error { } // For an application, we only support the query operation - if prometheusOp != "query" { - return errors.New("Only 'query' is supported for a Cloud Foundry application") + if prometheusOp != "query" && prometheusOp != "query_range" { + return errors.New("Only 'query' or 'query_range' is supported for a Cloud Foundry application") } // Now make the metrics requests to the appropriate metrics endpoint