-
-
Notifications
You must be signed in to change notification settings - Fork 959
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
New Script: VictoriaMetrics #900
Conversation
… and time series database see also https://docs.victoriametrics.com/
@michelroegl-brunner PTAL |
scrape_interval: 10s | ||
static_configs: | ||
- targets: ['127.0.0.1:8428'] | ||
END |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
END | |
EOF |
msg_info "Stopping ${APP}" | ||
systemctl stop victoriametrics | ||
msg_ok "Stopped ${APP}" | ||
msg_info "Updating ${APP} to ${RELEASE}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v${RELEASE}
systemctl stop victoriametrics | ||
msg_ok "Stopped ${APP}" | ||
msg_info "Updating ${APP} to ${RELEASE}" | ||
mkdir -p /opt/victoriametrics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for what in update? Folder should already exists
tar -xf --delete victoria-metrics-linux-amd64-${RELEASE}.tar.gz -C /opt/victoriametrics | ||
rm -rf victoria-metrics-linux-amd64-${RELEASE}.tar.gz | ||
echo "${RELEASE}" >/opt/${APP}_version.txt | ||
msg_ok "Updated ${APP} to ${RELEASE}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v${RELEASE}
msg_ok "Started ${APP}" | ||
msg_ok "Updated Successfully" | ||
else | ||
msg_ok "No update required. ${APP} is already at ${RELEASE}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v${RELEASE}
curl \ | ||
sudo \ | ||
mc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idention and apt-get instead of apt
$STD apt-get install -y \
sudo \
...
...
...
msg_info "Installing VictoriaMetrics" | ||
RELEASE=$(curl -s https://api.github.com/repos/VictoriaMetrics/VictoriaMetrics/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') | ||
mkdir -p {/etc/victoriametrics,/var/lib/victoriametrics,/opt/victoriametrics} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove blank line
|
||
msg_info "Installing VictoriaMetrics" | ||
RELEASE=$(curl -s https://api.github.com/repos/VictoriaMetrics/VictoriaMetrics/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') | ||
mkdir -p {/etc/victoriametrics,/var/lib/victoriametrics,/opt/victoriametrics} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/var/lib... not needed?
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this 3 lines
-opentsdbListenAddr=:4242 \ | ||
-influxListenAddr=:8089 \ | ||
-enableTCP6 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove blank line
rm -rf victoria-metrics-linux-amd64-${RELEASE}.tar.gz | ||
echo "${RELEASE}" >/opt/${APP}_version.txt | ||
msg_ok "Updated ${APP} to ${RELEASE}" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add before Service Startup:
msg_info "Cleaning up"
rm -rf PathFile
msg_ok "Cleaned"
Have you given up? ^^ The script was almost finished, just a bit of fine-tuning. @denisgolius |
see also https://docs.victoriametrics.com/
✍️ Description
This PR adds VictoriaMetrics to the ProxmoxVE apps.
For more information, see our list of articles https://docs.victoriametrics.com/articles/
🛠️ Type of Change
Please check the relevant options:
✅ Prerequisites
The following steps must be completed for the pull request to be considered:
📋 Additional Information (optional)
Provide any extra context or screenshots about the feature or fix here.

See also: