Skip to content

fix(alerting): show local time alongside UTC - #161

Merged
edospadoni merged 3 commits into
mainfrom
improve_lert_notification
Jul 29, 2026
Merged

fix(alerting): show local time alongside UTC#161
edospadoni merged 3 commits into
mainfrom
improve_lert_notification

Conversation

@gsanchietti

@gsanchietti gsanchietti commented Jul 28, 2026

Copy link
Copy Markdown
Member

Alert emails/Telegram messages showed StartsAt/EndsAt in UTC only,
confusing recipients checking against wall-clock time. Uses
Alertmanager's tz func to add Europe/Rome time (CEST/CET) next to UTC.

Assisted-by: Claude Code:claude-sonnet-5

@gsanchietti gsanchietti self-assigned this Jul 28, 2026
@edospadoni
edospadoni deployed to improve_lert_notification - my-backend-qa PR #161 July 28, 2026 14:33 — with Render Active
@github-actions

Copy link
Copy Markdown
Contributor

🔗 Redirect URIs Added to Logto

The following redirect URIs have been automatically added to the Logto application configuration:

Redirect URIs:

  • https://my-proxy-qa-pr-161.onrender.com/login-redirect

Post-logout redirect URIs:

  • https://my-proxy-qa-pr-161.onrender.com/login

These will be automatically removed when the PR is closed or merged.

@gsanchietti
gsanchietti marked this pull request as ready for review July 28, 2026 14:35
@gsanchietti
gsanchietti requested a review from edospadoni July 28, 2026 14:35
@gsanchietti gsanchietti assigned andre8244 and unassigned andre8244 Jul 28, 2026
@gsanchietti
gsanchietti requested a review from andre8244 July 29, 2026 07:22
@edospadoni
edospadoni temporarily deployed to improve_lert_notification - my-collect-qa PR #161 July 29, 2026 07:51 — with Render Destroyed
@gsanchietti gsanchietti changed the title fix(alerting): show local time alongside UTC fix(alerting): stop false fleet-wide offline alerts Jul 29, 2026
@gsanchietti
gsanchietti marked this pull request as draft July 29, 2026 07:52
@gsanchietti gsanchietti changed the title fix(alerting): stop false fleet-wide offline alerts fix(alerting): show local time alongside UTC Jul 29, 2026
@gsanchietti
gsanchietti marked this pull request as ready for review July 29, 2026 07:58
@gsanchietti
gsanchietti force-pushed the improve_lert_notification branch from 35621a6 to ab694cc Compare July 29, 2026 08:01
@edospadoni
edospadoni deployed to improve_lert_notification - my-backend-qa PR #161 July 29, 2026 08:01 — with Render Active
Alert emails/Telegram messages showed StartsAt/EndsAt in UTC only,
confusing recipients checking against wall-clock time. Uses
Alertmanager's tz func to add Europe/Rome time (CEST/CET) next to UTC.

Assisted-by: Claude Code:claude-sonnet-5
@gsanchietti
gsanchietti force-pushed the improve_lert_notification branch from ab694cc to ad92d09 Compare July 29, 2026 08:26
@edospadoni
edospadoni deployed to improve_lert_notification - my-backend-qa PR #161 July 29, 2026 08:26 — with Render Active
@edospadoni
edospadoni deployed to improve_lert_notification - my-mimir-qa PR #161 July 29, 2026 08:26 — with Render Active
Timestamps showed the local time and a parenthesised UTC duplicate on
the same line, with seconds and a hardcoded Europe/Rome in every
template, the English ones included. Render a single local time in the
format the web UI already uses, with UTC as a secondary line below it:
muted grey in the HTML bodies, indented to the value column in the
plain text ones. The zone moves to ALERTING_TIMEZONE (default
Europe/Rome) and is substituted like APP_URL already was, so format and
zone live in one shared _datetime.tmpl instead of being repeated.

Unify the label wording across the three channels: the plain text
column abbreviated RIVEND./DISTRIB./ORG. to fit, the HTML said
DESCRIZIONE where the others said DETTAGLI, and the Italian Telegram
resolved message said "Attivo da" where it meant "Inizio". Widen the
column to the longest label instead of abbreviating.

Add render tests. The templates run inside Mimir's alertmanager, so
nothing here executed them and a broken one surfaced only as a
notification that never arrived.

Drop the zoneinfo bind mount from the local Mimir compose: it runs the
official image, which already ships tzdata.
@edospadoni
edospadoni temporarily deployed to improve_lert_notification - my-mimir-qa PR #161 July 29, 2026 10:38 — with Render Destroyed
@edospadoni
edospadoni had a problem deploying to improve_lert_notification - my-backend-qa PR #161 July 29, 2026 10:38 — with Render Failure
ALERTING_TIMEZONE is validated with time.LoadLocation at startup, but
the runtime image is alpine without the tzdata package, so the default
Europe/Rome failed to resolve and the backend refused to boot. Embed
the database in the binary rather than adding the package to the
image: this check is the only thing here that needs it, and embedding
survives a change of base image.
@edospadoni
edospadoni temporarily deployed to improve_lert_notification - my-backend-qa PR #161 July 29, 2026 10:44 — with Render Destroyed
@edospadoni
edospadoni merged commit e88a53e into main Jul 29, 2026
12 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🗑️ Redirect URIs Removed from Logto

The following redirect URIs have been automatically removed from the Logto application configuration:

Redirect URIs:

  • https://my-proxy-qa-pr-161.onrender.com/login-redirect

Post-logout redirect URIs:

  • https://my-proxy-qa-pr-161.onrender.com/login

Cleanup completed for PR #161.

@edospadoni
edospadoni deleted the improve_lert_notification branch July 29, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants