Compare commits
3 commits
817b90a95b
...
584cf3ba3f
Author | SHA1 | Date | |
---|---|---|---|
584cf3ba3f | |||
4a2673ae16 | |||
a5390de227 |
2 changed files with 24 additions and 0 deletions
|
@ -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
|
|
@ -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"
|
||||
|
|
Reference in a new issue