Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display Monitor Groups in Mail Subject #4756

Closed
nefingar opened this issue May 13, 2024 · 2 comments
Closed

Display Monitor Groups in Mail Subject #4756

nefingar opened this issue May 13, 2024 · 2 comments
Labels
area:notifications Everything related to notifications help type:enhance-existing feature wants to enhance existing monitor

Comments

@nefingar
Copy link

📑 I have found these related issues/pull requests

Similar to #4384 I want to request a new Tag {{MONITOR_GROUP}} or just {{GROUP}} that would translate to the monitor group of a monitor or just an empty string if a monitor isn't part of a particular group.

🏷️ Feature Request Type

Change to existing notification-provider

🔖 Feature description

I would like to use a {{MONITOR_GROUP}} tag in my custom mail subject to better differentiate my self hosted apps.

✔️ Solution

{{MONITOR_GROUP}} or {{GROUP}} should translate to the group a monitor belongs to or an empty string if the monitor isn't part of any group.

❓ Alternatives

I have considered either including the monitor group name in the application name, making my naming a bit redundant.

I also could setup multiple SMTP Notification providers. One for each Monitor Group, than I could write the group name into the custom subject.

📝 Additional Context

I'm using monitor groups heavily to bundle up my hosted applications and their dependencies. For example i have a Nextcloud Setup with 3 containers (database, redis, app). In Uptime Kuma I created a Monitor Group called "Nextcloud" and it's children are called "App", "Database", "Redis" and "Reverse Proxy" (to check if the reverse proxy is working correctly). And I used this structure for other services as well (Forgejo, Rustdesk, etc.) So I have multiple Monitors called "Database" each belonging to a different group.

If I now receive a Mail for a service that goes down it just says "[Database] [🔴 Down] Request failed with status code 404" which makes it hard to know what database exactly went down because it could have been the one from the Nextcloud or Forgejo Groups.

@nefingar nefingar added the feature-request Request for new features to be added label May 13, 2024
@CommanderStorm CommanderStorm added help area:notifications Everything related to notifications type:enhance-existing feature wants to enhance existing monitor and removed feature-request Request for new features to be added labels May 13, 2024
@CommanderStorm
Copy link
Collaborator

In v2.0 the entire monitorJSON is included in the request
=> you can customise your template as needed (not just the weird Regex-replacements in v1.0):

=> this issue is already resolved in master, see #4500 for the status of said release.

For other monitors, this is tracked in:

@nefingar
Copy link
Author

Oh I didn't know, thanks for clarifying that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:notifications Everything related to notifications help type:enhance-existing feature wants to enhance existing monitor
Projects
None yet
Development

No branches or pull requests

2 participants