Skip to content

Commit

Permalink
feat(cloud-screenshot): add a Service Monitor resource for metrics.
Browse files Browse the repository at this point in the history
build: [release]
  • Loading branch information
lots0logs committed Nov 18, 2024
1 parent ce51948 commit 6cb1011
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/cloud-screenshot/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ maintainers:
- email: [email protected]
name: Elegant Themes
name: cloud-screenshot
version: 1.0.3
version: 1.0.4
15 changes: 15 additions & 0 deletions charts/cloud-screenshot/templates/cloud-screenshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,21 @@ spec:
name: http
---

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: cloud-screenshot
namespace: dc-screenshot
spec:
selector:
matchLabels:
app: cloud-screenshot
endpoints:
- path: /wp-json/screenshot/v1/metrics
port: http

---

apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down

0 comments on commit 6cb1011

Please sign in to comment.