-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathmain.yml
47 lines (37 loc) · 1.64 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
vmagent_version: "v1.116.0"
vmagent_enterprise: false
vmagent_license_key: ""
vmagent_license_key_file: ""
vmagent_repo_url: "https://github.com/VictoriaMetrics/VictoriaMetrics"
vmagent_platform: "{% if vmagent_version.replace('v', '') is version('1.79.0', '>=') %}-linux{% endif %}"
vmagent_download_url: "{{ vmagent_repo_url }}/releases/download/{{ vmagent_version }}/vmutils{{ vmagent_platform }}-{{ go_arch }}-{{ vmagent_version }}{%if vmagent_enterprise %}-enterprise{% endif %}.tar.gz"
vmagent_system_user: "vic_vm_agent"
vmagent_system_group: "{{ vmagent_system_user }}"
vmagent_config_dir: "/opt/vic-vmagent"
vmagent_sd_config_dir: "{{ vmagent_config_dir }}/file_sd_configs"
vmagent_tmp_data_path: "/tmp/vmagent"
vmagent_remote_write_host: "http://localhost:8428"
vmagent_service_args:
"remoteWrite.url": "{{ vmagent_remote_write_host }}/api/v1/write"
# "remoteWrite.url":
# - "{{ vmagent_remote_write_host_0 }}/api/v1/write"
# - "{{ vmagent_remote_write_host_1 }}/api/v1/write"
"promscrape.config": "{{ vmagent_config_dir }}/config.yml"
"remoteWrite.tmpDataPath": "{{ vmagent_tmp_data_path }}"
"remoteWrite.streamAggr.config": "{{ vmagent_config_dir }}/aggregation.yml"
vmagent_scrape_config:
scrape_configs:
- job_name: localhost
static_configs:
- targets: []
# - "127.0.0.1:9100"
vmagent_aggregation_config: []
vmagent_install_download_to_control: false
vm_proxy_http: ""
vm_proxy_https: ""
vmagent_exec_start_post: ""
vmagent_exec_stop: ""
# See https://www.freedesktop.org/software/systemd/man/systemd.exec.html#ProtectHome=
# Available options: 'yes', 'read-only', 'tmpfs'
vmagent_systemd_protect_home: "yes"