Skip to content

Monitoring & logging: Build, deploy & roll back

Monitoring & logging commands for build, deploy & roll back (tags: #deploy #build #rollback #release #compose).

Index
2 items

Prometheus: Validate config and rule files

Safe

Checks prometheus.yml and every rule file it references. Run it in CI before deploying.

promtool check config <config-file>
What each part does
  1. promtool check configvalidate prometheus.yml and the rule files it references
  2. <config-file>path to the config; use promtool check rules <file> for a rule file alone

Also known as: promtool · rule syntax

Prometheus: Reload config without restarting

Safe

Hot-reload config and rules.

curl -X POST <prometheus-url>/-/reload
What each part does
  1. curl -X POSTthe reload endpoint needs POST
  2. <prometheus-url>/-/reloadre-read config and rule files; only works with --web.enable-lifecycle

My note Needs --web.enable-lifecycle. With the Operator, edit the CRDs instead.

Also known as: reload prometheus

My DevOps Playbook by Angelo John Calleja

New runbook

GitHub not connected

Saving is handled by the site: the GitHub token is stored in Cloudflare, not in your browser. Enter the editor password (the EDITOR_PASSWORD secret) to unlock saving in this browser.

Saving commits to gelogrammer/My_DevOps_Playbook. Create a fine-grained token with access to only this repo andContents: Read and write, then paste it here. It is stored only in this browser.

src/content/docs/…