Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed VictoriaMetrics download link for the newest version #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
---
# defaults file for VictoriaMetrics
victoriametrics_repo_url: "https://github.com/VictoriaMetrics/VictoriaMetrics"
victoriametrics_download_url: "{{ victoriametrics_repo_url }}/releases/download/{{ victoriametrics_version }}/victoria-metrics-{{ victoriametrics_version }}.tar.gz"
victoriametrics_vmutils_download_url: "{{ victoriametrics_repo_url }}/releases/download/{{ victoriametrics_version }}/vmutils-{{ victoriametrics_version }}.tar.gz"
victoriametrics_version: "v1.28.0"
victoriametrics_cpu_architecture: "amd64"
victoriametrics_download_url: "{{ victoriametrics_repo_url }}/releases/download/{{ victoriametrics_version }}/victoria-metrics-{{ victoriametrics_cpu_architecture }}-{{ victoriametrics_version }}.tar.gz"
victoriametrics_vmutils_download_url: "{{ victoriametrics_repo_url }}/releases/download/{{ victoriametrics_version }}/vmutils-{{ victoriametrics_cpu_architecture }}-{{ victoriametrics_version }}.tar.gz"
victoriametrics_version: "v1.69.0"
victoriametrics_system_user: "victoriametrics"
victoriametrics_system_group: "{{ victoriametrics_system_user }}"
victoriametrics_data_dir: "/var/lib/victoria-metrics/"
victoriametrics_service_args:
storageDataPath: "{{ victoriametrics_data_dir }}"
storageDataPath: "{{ victoriametrics_data_dir }}" # default retentionPeriod is 1 months
victoriametrics_service_flags:
disable_cache: "search.disableCache" # useful during data backfilling
victoriametrics_max_open_files: 2097152
victoriametrics_install_vmutil: false
2 changes: 1 addition & 1 deletion tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
group: root
mode: 0644
notify: Restart VictoriaMetrics service
no_log: True
no_log: False
2 changes: 1 addition & 1 deletion tasks/install_vmutils.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
victoriametrics_version not in victoriametrics_current_version.stderr and
victoriametrics_install_vmutil == True

- name: Download and unarchive VictoriaMetrics release binary
- name: Download and unarchive VictoriaMetrics vmutils release binary
unarchive:
src: "{{ victoriametrics_vmutils_download_url }}"
dest: /usr/local/bin
Expand Down
3 changes: 2 additions & 1 deletion templates/victoriametrics.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ LimitNOFILE={{ victoriametrics_max_open_files }}
User={{ victoriametrics_system_user }}
Group={{ victoriametrics_system_group }}
ExecStart=/usr/local/bin/victoria-metrics-prod \
{% for flag, flag_value in victoriametrics_service_args.items() %}--{{ flag }}={{ flag_value }} {% endfor %}
{% for flag, flag_value in victoriametrics_service_args.items() %}--{{ flag }}={{ flag_value }} {% endfor %} \
{% for flag, flag_value in victoriametrics_service_flags.items() %}-{{ flag_value }} {% endfor %}

SyslogIdentifier=victoriametrics
Restart=always
Expand Down