Update Prometheus queries to use Liquid syntax for variable substitution
Once support for usage of Liquid in Prometheus queries is merged (!20793 (merged)), support for interpolating variables in Prometheus queries using the Ruby syntax (string_%{variable}_string) is planned to be deprecated and eventually discontinued: #37990 (closed)
Update documentation, predefined dashboards and code to use the Liquid syntax (string_{{variable}}_string) for interpolating variables.
Docs:
doc/development/prometheus_metrics.mddoc/user/project/integrations/prometheus_library/kubernetes.mddoc/user/project/integrations/prometheus_library/nginx_ingress_vts.mddoc/user/project/integrations/prometheus_library/nginx_ingress.mddoc/user/project/integrations/prometheus.mddoc/user/project/integrations/prometheus_library/cloudwatch.mddoc/user/project/integrations/prometheus_library/haproxy.mddoc/user/project/integrations/prometheus_library/nginx.md
Predefined dashboards:
config/prometheus/cluster_metrics.ymlee/config/prometheus/cluster_metrics.ymlconfig/prometheus/common_metrics.yml
Spec files:
spec/lib/gitlab/prometheus/queries/knative_invocation_query_spec.rbspec/javascripts/monitoring/utils_spec.jsspec/frontend/serverless/mock_data.jsspec/frontend/monitoring/mock_data.jsee/spec/services/clusters/applications/prometheus_config_service_spec.rbspec/controllers/projects/environments/prometheus_api_controller_spec.rb
Note that the specs in spec/services/prometheus/proxy_variable_substitution_service_spec.rb need to stay. They will be removed when support for Ruby variable interpolation is removed.
Edited by 🤖 GitLab Bot 🤖