turn of exporter only on upgrade

This commit is contained in:
abhishek9686 2024-01-23 11:42:29 +05:30
parent 13caec205b
commit a57c6691f8

View file

@ -229,8 +229,10 @@ save_config() { (
if [ "$INSTALL_TYPE" = "pro" ]; then
save_config_item NETMAKER_TENANT_ID "$TENANT_ID"
save_config_item LICENSE_KEY "$LICENSE_KEY"
save_config_item METRICS_EXPORTER "on"
save_config_item PROMETHEUS "on"
if [ "$UPGRADE_FLAG" = "yes" ];then
save_config_item METRICS_EXPORTER "on"
save_config_item PROMETHEUS "on"
fi
save_config_item SERVER_IMAGE_TAG "$IMAGE_TAG-ee"
else
save_config_item "off"