Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Metrics: Add support for query_range #3081

Merged
merged 1 commit into from
Sep 28, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/jetstream/plugins/metrics/cloud_foundry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down