mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-02-03 20:03:25 +01:00
Add setup for influxdb v3 (#10736)
This commit is contained in:
@@ -43,4 +43,4 @@ description
|
||||
msg_ok "Completed successfully!\n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP} and Port 8888 for v1 or Port 8086 (v2)${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP} and Port 8888 for v1, Port 8086 for v2 or Port 8181 for v3${CL}"
|
||||
|
||||
@@ -21,23 +21,29 @@ setup_deb822_repo \
|
||||
"stable"
|
||||
msg_ok "Set up InfluxDB Repository"
|
||||
|
||||
read -r -p "${TAB3}Which version of InfluxDB to install? (1 or 2) " prompt
|
||||
read -r -p "${TAB3}Which version of InfluxDB to install? (1, 2 or 3) " prompt
|
||||
if [[ $prompt == "3" ]]; then
|
||||
INFLUX="3"
|
||||
if [[ $prompt == "2" ]]; then
|
||||
INFLUX="2"
|
||||
else
|
||||
INFLUX="1"
|
||||
fi
|
||||
|
||||
msg_info "Installing InfluxDB"
|
||||
msg_info "Installing InfluxDB v${INFLUX}"
|
||||
if [[ $INFLUX == "3" ]]; then
|
||||
$STD apt install -y influxdb3-core
|
||||
systemctl enable -q --now influxdb3-core
|
||||
if [[ $INFLUX == "2" ]]; then
|
||||
$STD apt install -y influxdb2
|
||||
systemctl enable -q --now influxdb
|
||||
else
|
||||
$STD apt install -y influxdb
|
||||
download_file "https://dl.influxdata.com/chronograf/releases/chronograf_1.10.8_amd64.deb" "${HOME}/chronograf_1.10.8_amd64.deb"
|
||||
$STD dpkg -i "${HOME}/chronograf_1.10.8_amd64.deb"
|
||||
rm -rf "${HOME}/chronograf_1.10.8_amd64.deb"
|
||||
systemctl enable -q --now influxdb
|
||||
fi
|
||||
systemctl enable -q --now influxdb
|
||||
msg_ok "Installed InfluxDB"
|
||||
|
||||
read -r -p "${TAB3}Would you like to add Telegraf? <y/N> " prompt
|
||||
|
||||
Reference in New Issue
Block a user