Add setup for influxdb v3 (#10736)

This commit is contained in:
Victor
2026-01-12 18:56:42 +01:00
committed by GitHub
parent 56e0783385
commit b4c16ef05d
2 changed files with 10 additions and 4 deletions

View File

@@ -43,4 +43,4 @@ description
msg_ok "Completed successfully!\n" msg_ok "Completed successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${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}"

View File

@@ -21,23 +21,29 @@ setup_deb822_repo \
"stable" "stable"
msg_ok "Set up InfluxDB Repository" 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 if [[ $prompt == "2" ]]; then
INFLUX="2" INFLUX="2"
else else
INFLUX="1" INFLUX="1"
fi 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 if [[ $INFLUX == "2" ]]; then
$STD apt install -y influxdb2 $STD apt install -y influxdb2
systemctl enable -q --now influxdb
else else
$STD apt install -y influxdb $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" 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" $STD dpkg -i "${HOME}/chronograf_1.10.8_amd64.deb"
rm -rf "${HOME}/chronograf_1.10.8_amd64.deb" rm -rf "${HOME}/chronograf_1.10.8_amd64.deb"
systemctl enable -q --now influxdb
fi fi
systemctl enable -q --now influxdb
msg_ok "Installed InfluxDB" msg_ok "Installed InfluxDB"
read -r -p "${TAB3}Would you like to add Telegraf? <y/N> " prompt read -r -p "${TAB3}Would you like to add Telegraf? <y/N> " prompt