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

Commit

Permalink
Merge pull request #3081 from cloudfoundry-incubator/metrics-api
Browse files Browse the repository at this point in the history
Metrics: Add support for query_range
  • Loading branch information
KlapTrap committed Sep 28, 2018
2 parents f7be1b3 + 2de612d commit 7283b10
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 7283b10

Please sign in to comment.