Skip to content

Commit

Permalink
fix(meshmetrics): add missing spec (#1588)
Browse files Browse the repository at this point in the history
Signed-off-by: slonka <[email protected]>
  • Loading branch information
slonka authored Jan 19, 2024
1 parent e5fc5fd commit 79481f3
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions app/_src/policies/meshmetric.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,19 +244,20 @@ That web framework exposes metrics under `/metrics/prometheus` and port `8888`.
type: MeshMetric
mesh: default
name: metrics-default
targetRef:
kind: Mesh
default:
sidecar:
usedOnly: true
backends:
- type: Prometheus
prometheus:
clientId: main-backend
port: 5670
path: /metrics
tls:
mode: "ProvidedTLS"
spec:
targetRef:
kind: Mesh
default:
sidecar:
usedOnly: true
backends:
- type: Prometheus
prometheus:
clientId: main-backend
port: 5670
path: /metrics
tls:
mode: "ProvidedTLS"
```
{% endpolicy_yaml %}

Expand All @@ -265,14 +266,15 @@ default:
type: MeshMetric
mesh: default
name: metrics-for-mesh-service
targetRef:
kind: MeshSubset
tags:
framework: "example-web-framework"
default:
applications:
- path: "/metrics/prometheus"
port: 8888
spec:
targetRef:
kind: MeshSubset
tags:
framework: "example-web-framework"
default:
applications:
- path: "/metrics/prometheus"
port: 8888
```
{% endpolicy_yaml %}

Expand Down

0 comments on commit 79481f3

Please sign in to comment.