Skip to content

[prometheus-kube-stack] Alerting into RocketChat not works #6243

@piratetm

Description

@piratetm

Describe the bug a clear and concise description of what the bug is.

The configuration for rocketchatConfigs is not rendering correctly.

What's your helm version?

v3.16.0

What's your kubectl version?

v1.32.2

Which chart?

https://artifacthub.io/packages/helm/prometheus-community/kube-prometheus-stack

What's the chart version?

78.0.0-78.2.0

What happened?

I want to set up channel alerts in RocketChat. But it seems technically impossible at the moment.

What you expected to happen?

My config:

apiVersion: monitoring.coreos.com/v1alpha1
kind: AlertmanagerConfig
spec:
...
  receivers:
    - name: "rocketchat-warnings"
      rocketchatConfigs:
        - tokenID:
            name: rocketchat-token
            key: MyChannel-Alerts-tokenid
          token:
            name: rocketchat-token
            key: MyChannel-Alerts-token
          channel: "#MyChannel-Alerts"
          apiURL: "https://rocketchat.mysite.com"
          title: "🔥 Alert from Alertmanager"
          text: test

Output file (cat /etc/alertmanager/config_out/alertmanager.env.yaml):

...
- name: monitoring/alermanagerconfig/rocketchat-warnings
  rocketchat_configs:
  - token_id: superSecretTokenID
    token: superSecretToken
    short_fields: false
    link_names: false
...

How to reproduce it?

No response

Enter the changed values of values.yaml?

No response

Enter the command that you execute and failing/misfunctioning.

And naturally this will lead to an error because it will not be able to find the api_url and especially the channel

time=2025-10-15T09:20:35.752Z level=ERROR source=dispatch.go:360 msg="Notify for alerts failed" component=dispatcher num_alerts=1 err="monitoring/alermanagerconfig/rocketchat-dev-warnings/rocketchat[0]: notify retry canceled due to unrecoverable error after 1 attempts: channel \"\": unexpected status code 401: {\"success\":false,\"error\":\"You must be logged in to do this.\",\"status\":\"error\",\"message\":\"You must be logged in to do this.\"}"

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions