Skip to content

Commit

Permalink
dc dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
GilHoggarth committed Apr 12, 2023
1 parent cd8479e commit 68065d9
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 11 deletions.
16 changes: 6 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,11 @@ stat-pusher/beta[0-9]-*.[0-9]*
stat-pusher/prod[0-9]-*.[0-9]*
stat-pusher/monitor[0-9]-*.[0-9]*

*/alertmanager/config.yml
*/grafana/grafana.ini
*daily_dashboard.json
*/grafana/provisioning/datasources/frequent_crawl.yaml
*/grafana/provisioning/datasources/prometheus.yaml
*/prometheus/prometheus.yml
monitor/alertmanager/config.yml
monitor/grafana/grafana.ini
monitor/grafana/provisioning/datasources/frequent_crawl.yaml
monitor/grafana/provisioning/datasources/prometheus.yaml
monitor/grafana/provisioning/datasources/domain_crawl.yaml
monitor/prometheus/prometheus.yml

monitor/grafana/provisioning/dashboards/daily_dashboard.json
monitor/grafana/provisioning/dashboards/wa_status.json

# h3exporter
h3exporter/h3exporter.pid.lock
1 change: 1 addition & 0 deletions monitor/beta/start_monitor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,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.34:9191'
export DC_EMBEDDED_SERVICE_NAME='192.168.45.21:9191'

export VISUALIZER_PORT=8080
export GRAFANA_PORT=3000
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 @@ -4,6 +4,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.34:9191'
export DC_EMBEDDED_SERVICE_NAME='192.168.45.21:9191'

export VISUALIZER_PORT=8082
export GRAFANA_PORT=3000
Expand All @@ -27,6 +28,7 @@ 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 < ./grafana/provisioning/datasources/domain_crawl.yaml-template > ./grafana/provisioning/datasources/domain_crawl.yaml
envsubst < ./prometheus/prometheus.yml-template > ./prometheus/prometheus.yml
envsubst < ./grafana/provisioning/dashboards/wa_status.json-template > ./grafana/provisioning/dashboards/wa_status.json

Expand Down
2 changes: 1 addition & 1 deletion monitor/grafana/provisioning/dashboards/dc_dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@
"steppedLine": false,
"targets": [
{
"expr": "heritrix3_crawl_job_alerts_count{jobname=\"dc2020\"}",
"expr": "heritrix3_crawl_job_alerts_count{jobname='dc2023'}",
"interval": "",
"legendFormat": "{{jobname}}",
"refId": "A"
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: 'Domain Crawler Embedded Prometheus'
type: prometheus
access: proxy
orgId: 1
url: http://${DC_EMBEDDED_SERVICE_NAME}
isDefault: false
1 change: 1 addition & 0 deletions monitor/prod/start_monitor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,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.34:9191'
export DC_EMBEDDED_SERVICE_NAME='192.168.45.21:9191'

export VISUALIZER_PORT=8080
export GRAFANA_PORT=3000
Expand Down

0 comments on commit 68065d9

Please sign in to comment.