Compare commits

..

3 commits

2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,17 @@
# yaml-language-server: $schema=https://ks.hsn.dev/operator.victoriametrics.com/vmscrapeconfig_v1beta1.json
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMScrapeConfig
metadata:
name: &name shadowfax
spec:
staticConfigs:
- targets: ["10.1.1.61:9100"]
path: /metrics
relabelConfigs:
- action: replace
targetLabel: job
replacement: node-exporter
- action: replace
targetLabel: instance
replacement: shadowfax
scheme: http

View file

@ -8,6 +8,13 @@ spec:
# Possible units character: h(ours), d(ays), w(eeks), y(ears). Min 24h.
retentionPeriod: "6" # months if not specified
useStrictSecurity: true
serviceSpec:
spec:
type: LoadBalancer
loadBalancerIP: 10.1.1.33
ports:
- name: http
port: 8429
extraArgs:
dedup.minScrapeInterval: 10s
maxLabelsPerTimeseries: "40"