mirror of
https://gitea.0xace.cc/ansible-galaxy/victoriametrics.git
synced 2024-11-24 23:56:39 +00:00
update victoria metrics role and bump to v1.98.0
This commit is contained in:
parent
18ed241bb0
commit
53cd90e91c
@ -1,5 +1,5 @@
|
|||||||
victoriametrics_corp_repo: "antonpatsev/VictoriaMetrics"
|
victoriametrics_copr_repo: "antonpatsev/VictoriaMetrics"
|
||||||
victoriametrics_version: "1.71.0"
|
victoriametrics_version: "1.98.0"
|
||||||
|
|
||||||
victoriametrics_vmstorage_group: 'vmstorage'
|
victoriametrics_vmstorage_group: 'vmstorage'
|
||||||
victoriametrics_vmstorage_version: "{{ victoriametrics_version }}"
|
victoriametrics_vmstorage_version: "{{ victoriametrics_version }}"
|
||||||
@ -12,11 +12,13 @@ victoriametrics_vminsert_group: 'vminsert'
|
|||||||
victoriametrics_vminsert_version: "{{ victoriametrics_version }}"
|
victoriametrics_vminsert_version: "{{ victoriametrics_version }}"
|
||||||
victoriametrics_vminsert_replication_factor: "2"
|
victoriametrics_vminsert_replication_factor: "2"
|
||||||
|
|
||||||
|
|
||||||
victoriametrics_vmauth_group: 'vmauth'
|
victoriametrics_vmauth_group: 'vmauth'
|
||||||
victoriametrics_vmauth_version: "{{ victoriametrics_version }}"
|
victoriametrics_vmauth_version: "{{ victoriametrics_version }}"
|
||||||
victoriametrics_vmauth_config_file: "/etc/victoriametrics/vmauth/config.yml"
|
victoriametrics_vmauth_config_file: "/etc/victoriametrics/vmauth/config.yml"
|
||||||
|
victoriametrics_vmauth_reloadAuthKey: reload-auth-key
|
||||||
|
victoriametrics_vmauth_flagsAuthKey: flags-auth-key
|
||||||
|
victoriametrics_vmauth_metricsAuthKey: metrics-auth-key
|
||||||
|
victoriametrics_vmauth_pprofAuthKey: pprof-auth-key
|
||||||
victoriametrics_vmauth_users: []
|
victoriametrics_vmauth_users: []
|
||||||
# - id: "1"
|
# - id: "1"
|
||||||
# username: "foobar"
|
# username: "foobar"
|
||||||
|
@ -1,33 +1,33 @@
|
|||||||
- name: Install yum corp plugin
|
- name: Install dnf-plugins-core
|
||||||
dnf:
|
dnf:
|
||||||
name: yum-plugin-copr
|
name: dnf-plugins-core
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Check corp repo antonpatsev/VictoriaMetrics is enabled
|
- name: Check copr repo antonpatsev/VictoriaMetrics is enabled
|
||||||
shell: dnf -y copr list --enabled
|
shell: dnf -y copr list --enabled
|
||||||
register: corp_repo
|
register: copr_repo
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
- name: Enable corp repo antonpatsev/VictoriaMetrics
|
- name: Enable copr repo antonpatsev/VictoriaMetrics
|
||||||
shell: dnf -y copr enable antonpatsev/VictoriaMetrics
|
shell: dnf -y copr enable antonpatsev/VictoriaMetrics
|
||||||
when: '"antonpatsev/VictoriaMetrics" not in corp_repo.stdout'
|
when: '"antonpatsev/VictoriaMetrics" not in copr_repo.stdout'
|
||||||
|
|
||||||
- name: Include vmstorage {{ victoriametrics_vmstorage_version }} deploy
|
- name: Include vmstorage {{ victoriametrics_vmstorage_version }} deploy
|
||||||
include: vmstorage.yaml
|
import_tasks: vmstorage.yaml
|
||||||
when: inventory_hostname in groups[victoriametrics_vmstorage_group]
|
when: inventory_hostname in groups[victoriametrics_vmstorage_group]
|
||||||
|
|
||||||
- name: Include vminsert {{ victoriametrics_vminsert_version }} deploy
|
- name: Include vminsert {{ victoriametrics_vminsert_version }} deploy
|
||||||
include: vminsert.yaml
|
import_tasks: vminsert.yaml
|
||||||
when: inventory_hostname in groups[victoriametrics_vminsert_group]
|
when: inventory_hostname in groups[victoriametrics_vminsert_group]
|
||||||
|
|
||||||
- name: Include vmselect {{ victoriametrics_vmselect_version }} deploy
|
- name: Include vmselect {{ victoriametrics_vmselect_version }} deploy
|
||||||
include: vmselect.yaml
|
import_tasks: vmselect.yaml
|
||||||
when: inventory_hostname in groups[victoriametrics_vmselect_group]
|
when: inventory_hostname in groups[victoriametrics_vmselect_group]
|
||||||
|
|
||||||
- name: Include vmauth {{ victoriametrics_vmauth_version }} deploy
|
- name: Include vmauth {{ victoriametrics_vmauth_version }} deploy
|
||||||
include: vmauth.yaml
|
import_tasks: vmauth.yaml
|
||||||
when: inventory_hostname in groups[victoriametrics_vmauth_group]
|
when: inventory_hostname in groups[victoriametrics_vmauth_group]
|
||||||
|
|
||||||
- name: Include vmagent {{ victoriametrics_vmagent_version }} deploy
|
- name: Include vmagent {{ victoriametrics_vmagent_version }} deploy
|
||||||
include: vmagent.yaml
|
import_tasks: vmagent.yaml
|
||||||
when: inventory_hostname in groups[victoriametrics_vmagent_group]
|
when: inventory_hostname in groups[victoriametrics_vmagent_group]
|
||||||
|
@ -27,9 +27,6 @@
|
|||||||
#
|
#
|
||||||
# Example to use vmagent with VictoriaMetrics Single
|
# Example to use vmagent with VictoriaMetrics Single
|
||||||
{{ victoriametrics_vmagent_prometheus_config_combined }}
|
{{ victoriametrics_vmagent_prometheus_config_combined }}
|
||||||
- job_name: 'vmagent'
|
|
||||||
static_configs:
|
|
||||||
- targets: ['127.0.0.1:8429']
|
|
||||||
- job_name: 'vminsert'
|
- job_name: 'vminsert'
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
|
Loading…
Reference in New Issue
Block a user