Skip to content

docs(agent): say that skipping the Prometheus step drops alert delivery - #828

Merged
blue4209211 merged 2 commits into
mainfrom
docs/agent-install-alert-wiring
Sep 5, 2026
Merged

docs(agent): say that skipping the Prometheus step drops alert delivery#828
blue4209211 merged 2 commits into
mainfrom
docs/agent-install-alert-wiring

Conversation

@mayankpande88

@mayankpande88 mayankpande88 commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Companion to k8s-agent#590.

The problem

# 2. Install Prometheus (skip if already running in cluster)

True for metrics, quietly wrong for alerts.

Metrics are queried — an existing Prometheus genuinely only needs its URL. Alerts are pushed, and the values file in that step is the only thing that configures Alertmanager to send them.

So someone with an existing Prometheus follows this page correctly and ends up with an agent that receives metrics and traces but never an alert, with nothing reporting an error. That is the normal state of any established cluster adopting NudgeBee, not an edge case — and it is how this was found.

What's added

A caution block after the install tabs with the receiver to paste into an existing Alertmanager, plus three things that are not obvious:

  • use the URL helm install prints, not the one in the values file — that resolves only for a release named nudgebee-agent in a namespace of the same name
  • continue: true, or the first matching route wins and existing receivers stop seeing alerts
  • not an AlertmanagerConfig CR — prometheus-operator scopes those to their own namespace by default, so it forwards only that namespace's alerts (tried here before, does not work)

Plus the out-of-cluster case (Grafana Cloud, Chronosphere), where the in-cluster URL cannot work at all, and how to confirm delivery via the Watchdog alert.

Also

Updates the values file URL — renamed upstream to kube-prometheus-stack-values.yaml, because extra-scrape-config.yaml described a fraction of its contents and actively encouraged the skip above.

This page will 404 on the old URL once #590 merges, so these two should land together.

Verified: ::: fences and <Tabs> balanced, and the /docs/integrations/Webhooks/ link target exists.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the NudgeBee agent installation documentation, changing the referenced Prometheus values file and adding a detailed caution block for users with an existing Prometheus setup to ensure Alertmanager is correctly configured to push alerts. The review feedback suggests using the bracketed syntax for the Docusaurus admonition title, clarifying how to merge the Alertmanager YAML configuration, and correcting the reference to the Helm installation output.

Comment thread doc-server/docs/installation/agent/installation/index.md Outdated
Comment thread doc-server/docs/installation/agent/installation/index.md Outdated
Comment thread doc-server/docs/installation/agent/installation/index.md Outdated
"Install Prometheus (skip if already running in cluster)" is true for metrics
and quietly wrong for alerts. Metrics are queried, so an existing Prometheus
genuinely only needs its URL. Alerts are pushed, and the values file in that
step is the only thing configuring Alertmanager to send them -- so anyone with
an existing Prometheus follows this page correctly and ends up with an agent
that receives metrics and traces but never an alert, with nothing reporting an
error anywhere. That is the normal state of an established cluster adopting
NudgeBee, not an edge case.

Adds the receiver to paste into an existing Alertmanager, and three things that
are not obvious:
  - use the URL helm install prints, not the one in the values file, which
    resolves only for a release named `nudgebee-agent` in a namespace of the
    same name;
  - continue: true, or the first matching route wins and existing receivers
    stop seeing alerts;
  - not an AlertmanagerConfig CR -- prometheus-operator scopes those to their
    own namespace by default, so it forwards only that namespace's alerts.
Plus the out-of-cluster case, where the in-cluster URL cannot work at all, and
how to confirm delivery via the Watchdog alert.

Also updates the values file URL, renamed upstream from extra-scrape-config.yaml
to kube-prometheus-stack-values.yaml because the old name described a fraction
of its contents and encouraged exactly the skip above.
@blue4209211
blue4209211 force-pushed the docs/agent-install-alert-wiring branch from 53be1c7 to fc27dea Compare September 5, 2026 08:45

@blue4209211 blue4209211 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@blue4209211
blue4209211 merged commit 8403d4f into main Sep 5, 2026
4 checks passed
@blue4209211
blue4209211 deleted the docs/agent-install-alert-wiring branch September 5, 2026 08:54
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.

2 participants