istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pkg/config/analysis/analyzers/testdata/telemetry-default-selector.yaml (about)

     1  apiVersion: telemetry.istio.io/v1alpha1
     2  kind: Telemetry
     3  metadata:
     4    name: no-selector # Since this is the only Telemetry in the namespace without a selector, no conflict
     5    namespace: ns1
     6  spec:
     7    metrics:
     8    - providers:
     9      - name: prometheus
    10      overrides:
    11      - match:
    12          metric: ALL_METRICS
    13        disabled: false
    14  ---
    15  apiVersion: telemetry.istio.io/v1alpha1
    16  kind: Telemetry
    17  metadata:
    18    name: has-selector
    19    namespace: ns1
    20  spec:
    21    selector: # Since this has a selector, it shouldn't conflict with the other Telemetry in the namespace
    22      matchLabels:
    23        app: foo
    24    metrics:
    25    - providers:
    26      - name: prometheus
    27      overrides:
    28      - match:
    29          metric: ALL_METRICS
    30        disabled: false
    31  ---
    32  apiVersion: telemetry.istio.io/v1alpha1
    33  kind: Telemetry
    34  metadata:
    35    name: has-conflict-1 # Both Telemetries in this namespace omit workload selector, so they are in conflict
    36    namespace: ns2
    37  spec:
    38    metrics:
    39    - providers:
    40      - name: prometheus
    41      overrides:
    42      - match:
    43          metric: ALL_METRICS
    44          mode: CLIENT
    45        disabled: false
    46  ---
    47  apiVersion: telemetry.istio.io/v1alpha1
    48  kind: Telemetry
    49  metadata:
    50    name: has-conflict-2 # Both Telemetries in this namespace omit workload selector, so they are in conflict
    51    namespace: ns2
    52  spec:
    53    metrics:
    54    - providers:
    55      - name: prometheus
    56      overrides:
    57      - match:
    58          metric: ALL_METRICS
    59          mode: SERVER
    60        disabled: false