diff --git a/src/lvmcryo/notifier.py b/src/lvmcryo/notifier.py index a601dd8..824711c 100644 --- a/src/lvmcryo/notifier.py +++ b/src/lvmcryo/notifier.py @@ -37,6 +37,9 @@ from lvmcryo.handlers import LN2Handler +GRAFANA_URL = "https://lvm-grafana.lco.cl/d/ec97aef8-071f-4f9f-9cc9-2f3f206d8308/cryostat-temperatures-and-pressures?orgId=1&refresh=10s" + + class NotifierConfig(BaseModel): """Configuration for the Notifier class.""" @@ -293,7 +296,7 @@ async def notify_after_fill( slack_message = ( "Something went wrong with the LNâ‚‚ fill. " "Please check the status of the spectrographs. " - "Grafana plots are available ." + "Grafana plots are available ." ) if error_message: if isinstance(error_message, Exception): @@ -400,6 +403,7 @@ async def notify_after_fill( error=email_error, has_images=has_images, valve_data=valve_data, + grafana_url=GRAFANA_URL, lvmweb_url=lvmweb_url, ), ) diff --git a/src/lvmcryo/templates/alert_message.html b/src/lvmcryo/templates/alert_message.html index c4ff16a..584dc80 100644 --- a/src/lvmcryo/templates/alert_message.html +++ b/src/lvmcryo/templates/alert_message.html @@ -17,7 +17,7 @@

An alert was raised during an LVM LN2 fill

{% endif %}
- At your earliest convenience please check the status of the LVM spectrograph system. You can access Grafana plots here. + At your earliest convenience please check the status of the LVM spectrograph system. You can access Grafana plots here.
{% if lvmweb_url %} diff --git a/src/lvmcryo/templates/success_message.html b/src/lvmcryo/templates/success_message.html index 98a9180..b01d5f5 100644 --- a/src/lvmcryo/templates/success_message.html +++ b/src/lvmcryo/templates/success_message.html @@ -10,7 +10,7 @@

An LVM LN2 fill was completed successfully.

{% if lvmweb_url %}
- Information about the fill can be found at this link. + Information about the fill can be found at this link. Grafana plots are available here.
{% endif %}