Skip to content

Commit 6cb1011

Browse files
committed
feat(cloud-screenshot): add a Service Monitor resource for metrics.
build: [release]
1 parent ce51948 commit 6cb1011

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

charts/cloud-screenshot/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ maintainers:
55
66
name: Elegant Themes
77
name: cloud-screenshot
8-
version: 1.0.3
8+
version: 1.0.4

charts/cloud-screenshot/templates/cloud-screenshot.yml

+15
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,21 @@ spec:
1212
name: http
1313
---
1414

15+
apiVersion: monitoring.coreos.com/v1
16+
kind: ServiceMonitor
17+
metadata:
18+
name: cloud-screenshot
19+
namespace: dc-screenshot
20+
spec:
21+
selector:
22+
matchLabels:
23+
app: cloud-screenshot
24+
endpoints:
25+
- path: /wp-json/screenshot/v1/metrics
26+
port: http
27+
28+
---
29+
1530
apiVersion: apps/v1
1631
kind: Deployment
1732
metadata:

0 commit comments

Comments
 (0)