puppet-prod/hieradata/roles/infra/metrics/vmstorage.yaml
Ben Vincent 6c2bad9806
All checks were successful
Build / precommit (pull_request) Successful in 3m23s
feat: add vmcluster module
- manage vmstorage package, service and environment file
- manage vmselect package, service and environment file
- manage vminsert package, service and environment file
- manage vmagent package, service and environment file
- manage options for vmstorage, vmselect, vminsert, vmagent role
2025-07-26 18:04:49 +10:00

45 lines
1.1 KiB
YAML

---
hiera_include:
- vmcluster::vmstorage
vmcluster::vmstorage::enable: true
vmcluster::vmstorage::data_path: /data/vmstorage
vmcluster::vmstorage::options:
retentionPeriod: 90d
tls: 'true'
tlsCertFile: '/etc/pki/tls/vault/certificate.crt'
tlsKeyFile: '/etc/pki/tls/vault/private.key'
tlsMinVersion: 'TLS12'
memory.allowedBytes: '1GiB'
metrics.exposeMetadata: 'true'
envflag.enable: 'true'
# additional altnames
profiles::pki::vault::alt_names:
- vmstorage.main.unkin.net
- vmstorage.service.consul
- vmstorage.query.consul
- "vmstorage.service.%{facts.country}-%{facts.region}.consul"
consul::services:
vmstorage:
service_name: 'vmstorage'
tags:
- 'metrics'
- 'metrics_scheme=https'
- 'metrics_job=vmstorage'
address: "%{facts.networking.ip}"
port: 8482
checks:
- id: 'vmstorage_http_check'
name: 'vmstorage HTTP Check'
http: "https://%{facts.networking.fqdn}:8482/health"
method: 'GET'
tls_skip_verify: true
interval: '10s'
timeout: '1s'
profiles::consul::client::node_rules:
- resource: service
segment: vmstorage
disposition: write