Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.17 KB

README.md

File metadata and controls

48 lines (37 loc) · 1.17 KB

Role Name : Victoriamertics single node tsdb

Deploy and configure single-node victoria-metrics

Requirements

ansible 2.10

Role Variables

Name Default Value Description
victoriametrics_version "1.70.0" current version
victoriametrics_system_user "victoriametrics"
victoriametrics_system_group "victoriametrics"
victoriametrics_install_dir "/usr/local/bin"
victoriametrics_repo_dir "/var/tmp/archive" vm files
victoriametrics_storage_data_path "/var/lib/vm" storage directory
victoriametrics_retention_period "12" 1 year retention

Read this https://docs.victoriametrics.com/#environment-variables аnd set more vars, put it into templates/victoriametrics.j2

Copy vm files to victoriametrics_repo_dir:

mkdir -p /var/tmp/archive
cd /var/tmp/archive
wget https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v1.70.0/victoria-metrics-amd64-v1.70.0.tar.gz

Example Playbook

---
- hosts: vm
  gather_facts: true
  connection: ssh
  roles:
    - v98765_vm_single

License

BSD