Set up Prometheus and Alertmanager #632

Merged
raucao merged 50 commits from feature/prometheus_cookbook into master 2026-07-09 13:33:38 +00:00
Owner
  • Add recipe for setting up Node Exporter on all machines (via role included in base role)
  • Deploy node_exporter on all machines
  • Add all node_exporter nodes as targets in prometheus.yml (via node/role search)
  • Write custom AltertManager config
    • send to hubot/hal by default
    • send to email (critical only)
  • Configure alerts for some basic problems like low disk space, low memory/swap, and CPUs running hot
  • Find all (interesting) existing prometheus metrics endpoints for services we run and add them as targets (split out into separate topics?)
    • Garage
    • see separate issues for rest

Note: mtail can be used to scrape any log files and export metrics from them in Prometheus format.

* [x] Add recipe for setting up [Node Exporter](https://prometheus.io/docs/guides/node-exporter/) on all machines (via role included in base role) * [x] Deploy node_exporter on all machines * [x] Add all `node_exporter` nodes as targets in `prometheus.yml` (via node/role search) * [x] Write custom AltertManager config * [x] send to hubot/hal by default * [x] send to email (critical only) * [x] Configure alerts for some basic problems like low disk space, low memory/swap, and CPUs running hot * [x] Find all (interesting) existing prometheus metrics endpoints for services we run and add them as targets (split out into separate topics?) * [x] Garage * see separate issues for rest Note: [mtail](https://github.com/google/mtail) can be used to scrape *any* log files and export metrics from them in Prometheus format.
greg added 4 commits 2026-07-03 16:00:58 +00:00
Owner

Would be nice to get #263 solved for looking up the targets' private IPs.

Would be nice to get #263 solved for looking up the targets' private IPs.
raucao self-assigned this 2026-07-03 17:54:39 +00:00
greg was assigned by raucao 2026-07-03 17:54:39 +00:00
raucao added the feature label 2026-07-03 17:57:33 +00:00
raucao added 5 commits 2026-07-04 13:27:48 +00:00
raucao added 1 commit 2026-07-04 13:45:37 +00:00
raucao added 2 commits 2026-07-04 13:47:00 +00:00
raucao added 1 commit 2026-07-04 13:51:48 +00:00
raucao added 1 commit 2026-07-04 14:14:50 +00:00
raucao changed title from WIP: Set up Prometheus to WIP: Set up Prometheus and AlertManager 2026-07-04 14:24:38 +00:00
raucao changed title from WIP: Set up Prometheus and AlertManager to WIP: Set up Prometheus and Alertmanager 2026-07-04 14:24:55 +00:00
raucao added this to the 2026 project 2026-07-04 14:25:32 +00:00
raucao moved this to In Progress in 2026 on 2026-07-04 14:25:46 +00:00
raucao added 1 commit 2026-07-04 14:30:34 +00:00
raucao added 2 commits 2026-07-05 10:42:14 +00:00
And DRY up the recipe so it's easy and expressive to add more
metrics/targets
raucao added 1 commit 2026-07-05 11:19:29 +00:00
raucao added 2 commits 2026-07-05 15:21:25 +00:00
raucao added 5 commits 2026-07-05 15:26:32 +00:00
Deletes the "override" and "default" properties, which may contain
sensitive data
Was actually added by manually editing the files, but Chef writes them
without newline, so our sanitization script also does it that way
Reviewed-on: #635
raucao added 2 commits 2026-07-05 15:32:53 +00:00
raucao added 1 commit 2026-07-05 15:39:36 +00:00
greg added 1 commit 2026-07-05 16:03:31 +00:00
greg added 1 commit 2026-07-05 16:16:42 +00:00
raucao added 2 commits 2026-07-06 10:38:13 +00:00
raucao added 5 commits 2026-07-06 12:56:13 +00:00
raucao added 1 commit 2026-07-06 16:02:09 +00:00
raucao added 1 commit 2026-07-06 16:48:10 +00:00
raucao added 1 commit 2026-07-06 16:50:15 +00:00
Owner

Added information about the various export options for the listed services. We should split them out into separate issues once we're done with the rest here.

Added separate issues for more metrics. See below.

<del>Added information about the various export options for the listed services. We should split them out into separate issues once we're done with the rest here.</del> Added separate issues for more metrics. See below.
raucao added the monitoring label 2026-07-07 11:08:09 +00:00
raucao added a new dependency 2026-07-07 11:23:09 +00:00
raucao added a new dependency 2026-07-07 11:24:57 +00:00
raucao added a new dependency 2026-07-07 11:25:13 +00:00
raucao added a new dependency 2026-07-07 11:25:20 +00:00
raucao added a new dependency 2026-07-07 11:25:27 +00:00
raucao added a new dependency 2026-07-07 11:25:33 +00:00
raucao added 1 commit 2026-07-07 12:27:06 +00:00
raucao added 1 commit 2026-07-07 13:05:48 +00:00
raucao added 2 commits 2026-07-07 13:20:56 +00:00
raucao added 2 commits 2026-07-07 14:58:45 +00:00
raucao added 1 commit 2026-07-09 12:10:58 +00:00
greg added 1 commit 2026-07-09 13:18:42 +00:00
greg added 1 commit 2026-07-09 13:24:05 +00:00
greg marked the pull request as ready for review 2026-07-09 13:26:27 +00:00
greg added 1 commit 2026-07-09 13:31:03 +00:00
raucao added the kredits-3 label 2026-07-09 13:33:16 +00:00
raucao merged commit 86f7b68726 into master 2026-07-09 13:33:38 +00:00
raucao deleted branch feature/prometheus_cookbook 2026-07-09 13:33:38 +00:00
raucao moved this to Done in 2026 on 2026-07-09 15:11:14 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Reference: kosmos/chef#632