Skip to content

Commit

Permalink
Added fc datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
GilHoggarth committed Apr 15, 2020
1 parent 9f92a05 commit 782d471
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions monitor/beta/start_monitor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions monitor/dev/start_monitor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions monitor/prod/start_monitor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 782d471

Please sign in to comment.