Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Istio 1.21.0 BOOTSTRAP_XDS_AGENT and EnvoyFilter custom stats_config - backwards compatibility issue #51005

Open
2 tasks done
maciekdude opened this issue May 13, 2024 · 3 comments

Comments

@maciekdude
Copy link

maciekdude commented May 13, 2024

Is this the right place to submit this?

  • This is not a security vulnerability or a crashing bug
  • This is not a question about how to use Istio

Bug Description

With the depreciation of BOOTSTRAP_XDS_AGENT env variable how do we update istio/envoy with custom dimensions/tags to be used with Prometheus.

Hence, with istio 1.21 all previously working metircs are no longer working.
e.g
token_service_auth_response_duration_milliseconds_code___200____bucket I would expect metric to be displayed as token_service_auth_response_duration_milliseconds_code_bucket{code=200}

apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
  name: aml-ingress-odp-machine-learning-bootstrap-tags
  namespace: istio-system
spec:
  configPatches:
  - applyTo: BOOTSTRAP
    patch:
      operation: MERGE
      value:
        stats_config:
          stats_tags:
          - regex: (user=\.=(.*?);\.;)
            tag_name: user
          - regex: (code=\.=(.*?);\.;)
            tag_name: code
          - regex: (path=\.=(.*?);\.;)
            tag_name: path

Version

client version: 1.21.2
control plane version: 1.21.0
data plane version: 1.21.0 (14 proxies)

Client Version: v1.30.0
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.2

Additional Information

No response

@zirain
Copy link
Member

zirain commented May 13, 2024

@maciekdude
Copy link
Author

maciekdude commented May 13, 2024

will https://github.com/istio/istio/tree/master/samples/custom-bootstrap help?

Oh maybe. Since I used XDS_AGENT with Istio ingress gateway to expose custom WASM plugin metrics it will be prolly more challenging.

Update: So according to this issue #50345, right now, if I understand correctly without customization bootstrap overwrite is not possible on Istio ingress gateways :(

Anyway EnvoyFilter and BOOTSTRAP_XDS_AGENT was very convenient way of managing those type of customisations. I would love to understand if there's any other "easy" way e.g via Telemetry

@zirain
Copy link
Member

zirain commented May 18, 2024

Anyway EnvoyFilter and BOOTSTRAP_XDS_AGENT was very convenient way of managing those type of customisations. I would love to understand if there's any other "easy" way e.g via Telemetry

nop, Telemetry cannot change bootstrap config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants