infra: add VMServiceScrape for Victoria Metrics scraping

VMAgent will scrape /metrics from shared-sqs Service every 30s.
Selector: app=shared-sqs, port: http (4100).
This commit is contained in:
Naeel
2026-04-12 12:05:33 +03:00
parent a4c910a099
commit 436060a83f
+20
View File
@@ -0,0 +1,20 @@
# vmservicescrape.yaml — VMServiceScrape для Victoria Metrics
# Говорит VMAgent скрейпить /metrics с shared-sqs Service.
# Created: 2026-04-12
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMServiceScrape
metadata:
name: shared-sqs-metrics
namespace: shared-sqs
labels:
app: shared-sqs
spec:
# Какой Service скрейпить — по label selector
selector:
matchLabels:
app: shared-sqs
# Endpoint: порт http, путь /metrics
endpoints:
- port: http
path: /metrics
interval: "30s"