diff --git a/monitor/beta/start_monitor.sh b/monitor/beta/start_monitor.sh index 16d2551..bb41d01 100755 --- a/monitor/beta/start_monitor.sh +++ b/monitor/beta/start_monitor.sh @@ -3,6 +3,7 @@ export PROMETHEUS_SERVICE_NAME='monitor-prometheus.bapi.wa.bl.uk' export ALERTMANAGER_SERVICE_NAME='monitor-alerts.bapi.wa.bl.uk' export GRAFANA_SERVICE_NAME='monitor-grafana.bapi.wa.bl.uk' +export FC_EMBEDDED_SERVICE_NAME='192.168.45.15:9191' export VISUALIZER_PORT=8080 export GRAFANA_PORT=3000 @@ -22,6 +23,7 @@ cd ../ envsubst < ./alertmanager/config.yml-template > ./alertmanager/config.yml envsubst < ./grafana/grafana.ini-template > ./grafana/grafana.ini envsubst < ./grafana/provisioning/datasources/prometheus.yaml-template > ./grafana/provisioning/datasources/prometheus.yaml +envsubst < ./grafana/provisioning/datasources/frequent_crawl.yaml-template > ./grafana/provisioning/datasources/frequent_crawl.yaml envsubst < ./prometheus/prometheus.yml-template > ./prometheus/prometheus.yml envsubst < ./grafana/provisioning/dashboards/daily_dashboard.json-template > ./grafana/provisioning/dashboards/daily_dashboard.json envsubst < ./grafana/provisioning/dashboards/wa_status.json-template > ./grafana/provisioning/dashboards/wa_status.json diff --git a/monitor/dev/start_monitor.sh b/monitor/dev/start_monitor.sh index c81a9db..db19538 100755 --- a/monitor/dev/start_monitor.sh +++ b/monitor/dev/start_monitor.sh @@ -3,6 +3,7 @@ export PROMETHEUS_SERVICE_NAME='monitor-prometheus.dapi.wa.bl.uk' export ALERTMANAGER_SERVICE_NAME='monitor-alerts.dapi.wa.bl.uk' export GRAFANA_SERVICE_NAME='monitor-grafana.dapi.wa.bl.uk' +export FC_EMBEDDED_SERVICE_NAME='192.168.45.15:9191' export VISUALIZER_PORT=8081 export GRAFANA_PORT=3000 @@ -22,6 +23,7 @@ cd ../ envsubst < ./alertmanager/config.yml-template > ./alertmanager/config.yml envsubst < ./grafana/grafana.ini-template > ./grafana/grafana.ini envsubst < ./grafana/provisioning/datasources/prometheus.yaml-template > ./grafana/provisioning/datasources/prometheus.yaml +envsubst < ./grafana/provisioning/datasources/frequent_crawl.yaml-template > ./grafana/provisioning/datasources/frequent_crawl.yaml envsubst < ./prometheus/prometheus.yml-template > ./prometheus/prometheus.yml envsubst < ./grafana/provisioning/dashboards/daily_dashboard.json-template > ./grafana/provisioning/dashboards/daily_dashboard.json envsubst < ./grafana/provisioning/dashboards/wa_status.json-template > ./grafana/provisioning/dashboards/wa_status.json diff --git a/monitor/grafana/provisioning/datasources/frequent_crawl.yaml-template b/monitor/grafana/provisioning/datasources/frequent_crawl.yaml-template new file mode 100644 index 0000000..b530a0a --- /dev/null +++ b/monitor/grafana/provisioning/datasources/frequent_crawl.yaml-template @@ -0,0 +1,13 @@ +# Instances of grafana will only update datasource configurations +# for apiVersion numbers of same or lower. Thus, a new lower number +# will not affect higher number configuration settings. +# Typically BLUKWA keep this set to 1 +apiVersion: 1 + +datasources: + - name: 'Frequent Crawler 05 Embedded Prometheus' + type: prometheus + access: proxy + orgId: 1 + url: http://${FC_EMBEDDED_SERVICE_NAME} + isDefault: false diff --git a/monitor/prod/start_monitor.sh b/monitor/prod/start_monitor.sh index 9b99101..757d924 100755 --- a/monitor/prod/start_monitor.sh +++ b/monitor/prod/start_monitor.sh @@ -3,6 +3,7 @@ export PROMETHEUS_SERVICE_NAME='monitor-prometheus.api.wa.bl.uk' export ALERTMANAGER_SERVICE_NAME='monitor-alerts.api.wa.bl.uk' export GRAFANA_SERVICE_NAME='monitor-grafana.api.wa.bl.uk' +export FC_EMBEDDED_SERVICE_NAME='192.168.45.15:9191' export VISUALIZER_PORT=8080 export GRAFANA_PORT=3000 @@ -21,6 +22,7 @@ cd ../ envsubst < ./alertmanager/config.yml-template > ./alertmanager/config.yml envsubst < ./grafana/grafana.ini-template > ./grafana/grafana.ini envsubst < ./grafana/provisioning/datasources/prometheus.yaml-template > ./grafana/provisioning/datasources/prometheus.yaml +envsubst < ./grafana/provisioning/datasources/frequent_crawl.yaml-template > ./grafana/provisioning/datasources/frequent_crawl.yaml envsubst < ./prometheus/prometheus.yml-template > ./prometheus/prometheus.yml envsubst < ./grafana/provisioning/dashboards/daily_dashboard.json-template > ./grafana/provisioning/dashboards/daily_dashboard.json envsubst < ./grafana/provisioning/dashboards/wa_status.json-template > ./grafana/provisioning/dashboards/wa_status.json