创建脚本 flink-monitor.sh
#!/bin/bash
case $1 in
"start") {
echo '----- 启动 prometheus -----'
nohup /opt/module/prometheus-2.29.1/prometheus --web.enable-admin-api --config.file=/opt/module/prometheus-2.29.1/prometheus.yml >/opt/module/prometheus-2.29.1/prometheus.log 2>&1 &