Skip to content

Add variable substitution in prometheus proxy API

Reuben Pereira requested to merge prometheus-api-var-subst into master

What does this MR do?

Add support for variable substitution in the Prometheus proxy API.

For example, if query 'up{env="%{ci_environment_slug}"}' is passed to the endpoint, it becomes 'up{env="production"}' before being sent to prometheus.

Does this MR meet the acceptance criteria?

#58516 (closed)

Conformity

Performance and testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Reuben Pereira

Merge request reports