From cad6a8ca8317f70b03698b9e4f6b1fe061998877 Mon Sep 17 00:00:00 2001
From: Alex Urban <alexander.urban@ligo.org>
Date: Thu, 1 Aug 2019 14:35:29 -0700
Subject: [PATCH] Adding config file for ligo-scald process

---
 gstlal-calibration/Makefile.am              |   2 +-
 gstlal-calibration/share/O3/calibration.yml | 117 ++++++++++++++++++++
 2 files changed, 118 insertions(+), 1 deletion(-)
 create mode 100644 gstlal-calibration/share/O3/calibration.yml

diff --git a/gstlal-calibration/Makefile.am b/gstlal-calibration/Makefile.am
index 7de2cf356f..6a14633e48 100644
--- a/gstlal-calibration/Makefile.am
+++ b/gstlal-calibration/Makefile.am
@@ -1,6 +1,6 @@
 ACLOCAL_AMFLAGS = -I gnuscripts
 EXTRA_DIST = gstlal-calibration.spec
-SUBDIRS = debian gst python bin tests
+SUBDIRS = debian gst python bin tests share
 
 # check that the most recent changelog entry's version matches the package
 # version
diff --git a/gstlal-calibration/share/O3/calibration.yml b/gstlal-calibration/share/O3/calibration.yml
new file mode 100644
index 0000000000..c8f2553670
--- /dev/null
+++ b/gstlal-calibration/share/O3/calibration.yml
@@ -0,0 +1,117 @@
+# configuration file for monitoring
+dashboard:
+  title: GstLAL Calibration Monitoring
+  image: https://ldas-jobs.ligo.caltech.edu/~gstlalcbc/static/gstlal.png
+  tabs:
+    - name: Docs
+      url: https://lscsoft.docs.ligo.org/gstlal
+    - name: Git
+      url: https://git.ligo.org/lscsoft/gstlal
+  gps: -30
+  duration: 600
+
+plots:
+  # latency history
+  - title: Latency at various stages for H1_HOFT_TEST
+    type: TimeSeries
+    measurement: H1_latency
+    schema:
+      column: data
+      aggregate: max
+      tag: stage
+      tag_key: stage
+      stage:
+        - src
+        - res
+        - hoft
+        - hoft_cleaned
+        - ctrl
+        - calibstatevec
+        - sink
+    layout:
+      yaxis:
+        title:
+          text: Latency [s]
+      margin:
+        l: 60
+        r: 0
+        t: 10
+        b: 20
+      font:
+        family: "'Nunito', sans-serif"
+        size: 14
+        color: '#666'
+      plot_bgcolor: 'rgba(0,0,0,0)'
+      paper_bgcolor: 'rgba(0,0,0,0)'
+    data_options:
+      #marker:
+      #  color: 'rgb(255, 0, 0)'
+    grid:
+      x: 0
+      y: 0
+      h: 3
+      w: 12
+    value: checked
+
+  # state vector checks
+  - title: 'State vector check: monitor_on'
+    type: TimeSeries
+    measurement: H1_statevector_bit_check
+    schema:
+      column: data
+      aggregate: max
+      tag: check
+      tag_key: check
+      check:
+        - monitor_on
+        - TDCFs_valid
+    layout:
+      yaxis:
+        title:
+          text: 
+      margin:
+        l: 60
+        r: 0
+        t: 10
+        b: 20
+      font:
+        family: "'Nunito', sans-serif"
+        size: 14
+        color: '#666'
+      plot_bgcolor: 'rgba(0,0,0,0)'
+      paper_bgcolor: 'rgba(0,0,0,0)'
+    data_options:
+      #marker:
+      #  color: 'rgb(255, 0, 0)'
+    grid:
+      x: 0
+      y: 3
+      h: 3
+      w: 12
+    value: checked
+
+nagios:
+  heartbeat:
+    lookback: 180
+    measurement: L1_strain_dropped
+    column: data
+    aggregate: max
+    alert_type: heartbeat
+    alert_settings:
+      tag_type: job
+      tag_format: 4digit
+      num_tags: 856
+
+measurements:
+  latency_history:
+    tag: job
+    num_tags: 856
+    default: 1e3
+    transform: none
+
+backends:
+  default:
+    backend: influxdb
+    db: gstlal_calibration
+    hostname: influxdb.ligo.caltech.edu
+    port: 8086
-- 
GitLab