Skip to content

Commit

Permalink
fix: traffic-metrics example (#1517)
Browse files Browse the repository at this point in the history
Signed-off-by: Charly Molter <[email protected]>
  • Loading branch information
lahabana authored Nov 13, 2023
1 parent fb68492 commit 051a9a0
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions app/_src/policies/traffic-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ metrics:
backends:
- name: prometheus-1
type: prometheus
conf:
skipMTLS: true # by default mTLS metrics are also protected by mTLS. Scraping metrics with mTLS without transparent proxy is not supported at the moment.
```
{% endif_version %}
{% if_version gte:2.4.x %}
Expand All @@ -108,9 +106,6 @@ metrics:
backends:
- name: prometheus-1
type: prometheus
conf:
tls:
mode: disabled
```
{% endif_version %}
which is a shortcut for:
Expand All @@ -125,7 +120,7 @@ metrics:
- name: prometheus-1
type: prometheus
conf:
skipMTLS: true
skipMTLS: false
port: 5670
path: /metrics
tags: # tags that can be referred in Traffic Permission when metrics are secured by mTLS
Expand All @@ -147,7 +142,7 @@ metrics:
tags: # tags that can be referred in Traffic Permission when metrics are secured by mTLS
kuma.io/service: dataplane-metrics
tls:
mode: disabled
mode: activeMTLSBackend
```
{% endif_version %}
{% endtab %}
Expand Down

0 comments on commit 051a9a0

Please sign in to comment.