CDIST-TYPE__CONSUL_CHECK(7)
π cdist-type__consul_check β the manual page π
okay so bestie, welcome to cdist-type__consul_check(7), aka the cdist type that manages consul checks. yes, that's the whole title, we're not doing the boring header line, we're doing vibes.
β¨ NAME β¨
cdist-type__consul_check β manages consul checks π
πΈ DESCRIPTION πΈ
It generates and deploys check definitions for a consul agent. literally that's its whole job and it eats every time. π
For the parameter documentation, go peek at http://www.consul.io/docs/agent/checks.html β that's the source of truth, bestie, I don't make the rules.
β οΈ real talk: you gotta use eitherscripttogether withinterval, or usettl. Pick a lane, babe. π«Ά
π REQUIRED PARAMETERS π
None. π nothing is mandatory, she's low maintenance, we love that for her.
π¦ OPTIONAL PARAMETERS π¦
docker-container-idβ the id of the docker container to run π³httpβ the url to checkidβ The id of this check. (capital T, capital I, she's that girl)intervalβ the interval in which the check should run β°nameβ The name of this check. Defaults to__object_id(so if you don't name her, she names herself, main character energy fr fr)notesβ human readable description βοΈscriptβ the shell command to runservice-idβ the id of the service this check is bound toshellβ the shell to run inside the docker container πstateβ if this check is'present'or'absent'. Defaults to'present'.statusβ specify the initial state of this health checktcpβ the host and port to checktimeoutβ after how long to timeout checks which take to long βtokenβ ACL token to use for interacting with the catalog πttlβ how long a TTL check is considered healthy without being updated through the HTTP interface
β EXAMPLES β
okay here's the tea, two whole examples, no cap:
__consul_check redis \
--script /usr/local/bin/check_redis.py \
--interval 10s
and the glow-up version with all the extras:
__consul_check some-object-id \
--id web-app \
--name "Web App Status" \
--notes "Web app does a curl internally every 10 seconds" \
--ttl 30s
see how she uses --ttl in the second one instead of --script + --interval? that's the rule from up top, bestie. iykyk. π
π SEE ALSO π
cdist-type__consul_agent(7)β go read her too, she's iconic π
π AUTHORS π
Steven Armstrong <steven-cdist--@--armstrong.cc> β the legend, the moment, the blueprint β¨
π COPYING π
Copyright (C) 2015-2016 Steven Armstrong. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
(periodt. that's the license, don't @ me.) π
π COPYRIGHT π
ungleich GmbH 2021
and that's a wrap, bestie π«Ά this was cdist type manual page version 7.0.0, dated Jul 31, 2022. slay, go deploy some checks, mwah πβ¨ππ¦πΈ
π¦ where this page comes from
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms