-
- Downloads
There was an error fetching the commit references. Please try again later.
Specify time window for additional metrics api
Adds support for start and end parameters in the #additional_metrics endpoint of the EnvironmentsController. start and end are meant to be unix timestamps, per the Prometheus API (as the consumer of this endpoint will eventually be transitioned to a prometheus endpoint). This functionality is behind the :metrics_time_window feature flag for development.
Showing
- app/controllers/projects/environments_controller.rb 11 additions, 1 deletionapp/controllers/projects/environments_controller.rb
- app/models/concerns/prometheus_adapter.rb 1 addition, 1 deletionapp/models/concerns/prometheus_adapter.rb
- app/models/environment.rb 4 additions, 2 deletionsapp/models/environment.rb
- lib/gitlab/prometheus/queries/additional_metrics_environment_query.rb 6 additions, 2 deletions...rometheus/queries/additional_metrics_environment_query.rb
- spec/controllers/projects/environments_controller_spec.rb 32 additions, 2 deletionsspec/controllers/projects/environments_controller_spec.rb
- spec/lib/gitlab/prometheus/queries/additional_metrics_environment_query_spec.rb 28 additions, 2 deletions...heus/queries/additional_metrics_environment_query_spec.rb
- spec/models/concerns/prometheus_adapter_spec.rb 42 additions, 0 deletionsspec/models/concerns/prometheus_adapter_spec.rb
- spec/models/environment_spec.rb 19 additions, 4 deletionsspec/models/environment_spec.rb
Please register or sign in to comment