Skip to content

Commit

Permalink
apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
denisgolius committed Dec 18, 2024
1 parent 9aab7e6 commit 7363c73
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
6 changes: 3 additions & 3 deletions ct/victoriametrics.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2021-2024 tteck
# Author: tteck (tteckster)
# Copyright (c) 2021-2024 community-scripts ORG
# Author: Denys Holius https://github.com/denisgolius
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://prometheus.io/
# Source: https://victoriametrics.com/

# App Default Values
APP="VictoriaMetrics"
Expand Down
24 changes: 14 additions & 10 deletions install/victoriametrics-install.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env bash

# Copyright (c) 2021-2024 tteck
# Author: tteck (tteckster)
# License: MIT
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Copyright (c) 2021-2024 community-scripts ORG
# Author: Denys Holius https://github.com/denisgolius
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://victoriametrics.com/

source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
color
Expand All @@ -14,9 +14,11 @@ network_check
update_os

msg_info "Installing Dependencies"
$STD apt-get install -y curl
$STD apt-get install -y sudo
$STD apt-get install -y mc
$STD apt install -y \
curl \
sudo \
mc

msg_ok "Installed Dependencies"

msg_info "Installing VictoriaMetrics"
Expand Down Expand Up @@ -46,8 +48,8 @@ echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
msg_ok "Installed VictoriaMetrics"

msg_info "Creating Service"
service_path="/etc/systemd/system/victoriametrics.service"
echo "[Unit]
cat <<EOF >/etc/systemd/system/victoriametrics.service
[Unit]
Description=VictoriaMetrics is a fast, cost-effective and scalable monitoring solution and time series database.
# https://docs.victoriametrics.com
# See https://docs.victoriametrics.com/#list-of-command-line-flags to get more information about supported command-line flags
Expand Down Expand Up @@ -79,7 +81,9 @@ StandardError=syslog
SyslogIdentifier=victoriametrics
[Install]
WantedBy=multi-user.target" >$service_path
WantedBy=multi-user.target
EOF

systemctl enable -q --now victoriametrics
msg_ok "Created Service"

Expand Down

0 comments on commit 7363c73

Please sign in to comment.