Skip to content

Add support for [custom_parameter] in custom alert configuration #1314

@ondrej337

Description

@ondrej337

Describe the feature request

Hi Gatus Team,
I'd like to request a feature enhancement for Gatus alerts.

Currently, custom alerts allow for flexible configuration, but it would be extremely useful to support a [custom_parameter] field that can be passed into the alert definition. This would enable users to inject dynamic or contextual data into alerts, such as environment tags, service metadata, or custom routing keys.

Proposed Use Case:
`
alerting:
custom:
url: "https://test.com/services/health"
method: "POST"
body: |
{
"text": "[CUSTOM_PARAMETER]"
}
endpoints:

  • name: website
    url: "https://twin.sh/health"
    conditions:
    • "[STATUS] == 200"
      alerts:
    • type: custom
      custom_parameter: "production"
      `
      Let me know if this is feasible or if you'd prefer a different implementation approach. Happy to help test or contribute if needed!

Thanks for the great work on Gatus
Ondrej

Why do you personally want this feature to be implemented?

No response

How long have you been using this project?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions