notification-controller/internal/notifier
Timur Demin 531c5873e7 Alertmanager: Change timestamp label to .StartsAt
notification-controller posted all outgoing Alertmanager alerts with
"timestamp" label, effectively preventing grouping alerts related to the
same resource and forcing users to configure a separate alert receiver
with `send_resolved: false`.

This changes it to instead set "startsAt", which was previously set
(automatically by Alertmanager) to alert posting time. "endsAt" remains
unset, as we have no way of figuring that out but the reconciliation
interval of the resource that generated the alert, which can currently
only be found out by making a Kubernetes API round-trip.

Note that this requires users to adapt alert templates that relied on
.Labels.Timestamp.

Signed-off-by: Timur Demin <me@tdem.in>
2024-04-27 16:20:12 +05:00
..
alertmanager.go Alertmanager: Change timestamp label to .StartsAt 2024-04-27 16:20:12 +05:00
alertmanager_fuzz_test.go build: Improve fuzz tests' reliability 2022-11-23 14:56:32 +00:00
alertmanager_test.go build: Improve fuzz tests' reliability 2022-11-23 14:56:32 +00:00
azure_devops.go Add the event summary into the genre. 2023-05-09 14:30:57 +01:00
azure_devops_fuzz_test.go Generate unique commit status updates 2022-12-09 12:05:51 +00:00
azure_devops_test.go Add the event summary into the genre. 2023-05-09 14:30:57 +01:00
azure_eventhub.go misc: do not capitalize err strings 2023-10-10 12:07:30 +02:00
bitbucket.go Avoid key collision for BitBucket status updates 2022-12-09 12:05:51 +00:00
bitbucket_fuzz_test.go Generate unique commit status updates 2022-12-09 12:05:51 +00:00
bitbucket_test.go Avoid key collision for BitBucket status updates 2022-12-09 12:05:51 +00:00
bitbucketserver.go Add support for Bitbucket Context path - Fix issue #742 2024-04-20 23:56:03 -05:00
bitbucketserver_test.go Add support for Bitbucket Context path - Fix issue #742 2024-04-20 23:56:03 -05:00
client.go Fix timout propagation for alerts 2024-03-07 16:30:39 +02:00
client_test.go Fix timout propagation for alerts 2024-03-07 16:30:39 +02:00
datadog.go feat: create datadog notification provider 2023-08-15 11:36:54 +03:00
datadog_fuzz_test.go feat: create datadog notification provider 2023-08-15 11:36:54 +03:00
datadog_test.go feat: create datadog notification provider 2023-08-15 11:36:54 +03:00
discord.go Refactor notifiers to use Event API v1beta1 2022-11-22 11:00:25 +00:00
discord_fuzz_test.go build: Improve fuzz tests' reliability 2022-11-23 14:56:32 +00:00
discord_test.go build: Improve fuzz tests' reliability 2022-11-23 14:56:32 +00:00
factory.go refactor notifier factory 2024-04-09 22:21:11 +02:00
forwarder.go Refactor notifiers to use Event API v1beta1 2022-11-22 11:00:25 +00:00
forwarder_fuzz_test.go build: Improve fuzz tests' reliability 2022-11-23 14:56:32 +00:00
forwarder_test.go Refactor notifies to use Flux Event API v1beta1 2022-12-09 12:05:51 +00:00
gitea.go Improve error messages in Gitea notifier 2023-06-21 08:42:57 +02:00
gitea_test.go Make Gitea tests independent of 3rd-party service 2023-06-20 15:10:20 +02:00
github.go Update dependencies 2023-06-27 11:16:42 +03:00
github_dispatch.go misc: do not capitalize err strings 2023-10-10 12:07:30 +02:00
github_dispatch_fuzz_test.go build: Improve fuzz tests' reliability 2022-11-23 14:56:32 +00:00
github_dispatch_test.go Refactor notifies to use Flux Event API v1beta1 2022-12-09 12:05:51 +00:00
github_fuzz_test.go Generate unique commit status updates 2022-12-09 12:05:51 +00:00
github_test.go Update dependencies 2023-06-27 11:16:42 +03:00
gitlab.go Generate unique commit status updates 2022-12-09 12:05:51 +00:00
gitlab_fuzz_test.go Generate unique commit status updates 2022-12-09 12:05:51 +00:00
gitlab_test.go Generate unique commit status updates 2022-12-09 12:05:51 +00:00
google_chat.go Refactor notifiers to use Event API v1beta1 2022-11-22 11:00:25 +00:00
google_chat_fuzz_test.go build: Improve fuzz tests' reliability 2022-11-23 14:56:32 +00:00
google_chat_test.go build: Improve fuzz tests' reliability 2022-11-23 14:56:32 +00:00
google_pubsub.go Add Provider for Google Pub/Sub Topic 2023-06-16 17:08:11 +01:00
google_pubsub_test.go Add Provider for Google Pub/Sub Topic 2023-06-16 17:08:11 +01:00
grafana.go fix(grafana-provider): replace ":" character in eventMetadata 2024-01-11 19:16:00 +01:00
grafana_fuzz_test.go build: Improve fuzz tests' reliability 2022-11-23 14:56:32 +00:00
grafana_test.go build: Improve fuzz tests' reliability 2022-11-23 14:56:32 +00:00
lark.go Refactor notifiers to use Event API v1beta1 2022-11-22 11:00:25 +00:00
lark_fuzz_test.go build: Improve fuzz tests' reliability 2022-11-23 14:56:32 +00:00
lark_test.go build: Improve fuzz tests' reliability 2022-11-23 14:56:32 +00:00
matrix.go Refactor notifiers to use Event API v1beta1 2022-11-22 11:00:25 +00:00
matrix_fuzz_test.go build: Improve fuzz tests' reliability 2022-11-23 14:56:32 +00:00
matrix_test.go build: Improve fuzz tests' reliability 2022-11-23 14:56:32 +00:00
nats.go Add NATS provider to v1beta3 2023-11-30 23:19:21 +00:00
nats_test.go Add NATS provider to v1beta3 2023-11-30 23:19:21 +00:00
nop.go Refactor notifiers to use Event API v1beta1 2022-11-22 11:00:25 +00:00
notifier.go Refactor notifiers to use Event API v1beta1 2022-11-22 11:00:25 +00:00
opsgenie.go Add severity to opsgenie Details payload 2024-04-19 14:36:35 +02:00
opsgenie_fuzz_test.go build: Improve fuzz tests' reliability 2022-11-23 14:56:32 +00:00
opsgenie_test.go Add severity to opsgenie Details payload 2024-04-19 14:36:35 +02:00
pagerduty.go Add support for PagerDuty 2023-06-27 10:52:24 +02:00
pagerduty_fuzz_test.go Add support for PagerDuty 2023-06-27 10:52:24 +02:00
pagerduty_test.go Add support for PagerDuty 2023-06-27 10:52:24 +02:00
rocket.go Remove checks for user/channel in Rocket notifier 2023-08-23 11:44:55 +02:00
rocket_fuzz_test.go build: Improve fuzz tests' reliability 2022-11-23 14:56:32 +00:00
rocket_test.go Remove checks for user/channel in Rocket notifier 2023-08-23 11:44:55 +02:00
sentry.go misc: remove redundant `break` statements 2023-10-10 12:07:32 +02:00
sentry_test.go Refactor notifiers to use Event API v1beta1 2022-11-22 11:00:25 +00:00
slack.go Refactor notifiers to use Event API v1beta1 2022-11-22 11:00:25 +00:00
slack_fuzz_test.go build: Improve fuzz tests' reliability 2022-11-23 14:56:32 +00:00
slack_test.go Refactor notifies to use Flux Event API v1beta1 2022-12-09 12:05:51 +00:00
teams.go Refactor notifiers to use Event API v1beta1 2022-11-22 11:00:25 +00:00
teams_fuzz_test.go build: Improve fuzz tests' reliability 2022-11-23 14:56:32 +00:00
teams_test.go build: Improve fuzz tests' reliability 2022-11-23 14:56:32 +00:00
telegram.go Fix Telegram MarkdownV2 escaping 2024-03-21 13:41:04 +03:00
telegram_fuzz_test.go build: Improve fuzz tests' reliability 2022-11-23 14:56:32 +00:00
util.go replace whilp/git-urls module by chainguard-dev/git-urls 2023-12-06 09:38:59 +01:00
util_fuzz_test.go build: Improve fuzz tests' reliability 2022-11-23 14:56:32 +00:00
util_test.go Add the event summary into the genre. 2023-05-09 14:30:57 +01:00
webex.go Refactor notifiers to use Event API v1beta1 2022-11-22 11:00:25 +00:00
webex_fuzz_test.go build: Improve fuzz tests' reliability 2022-11-23 14:56:32 +00:00
webex_test.go Refactor notifies to use Flux Event API v1beta1 2022-12-09 12:05:51 +00:00