Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Replica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
TPA
Wiki Replica
Commits
6f3f3b60
Verified
Commit
6f3f3b60
authored
3 months ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
expand on prometheus/puppet monitoring, compare to icinga
parent
3335c4b9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
howto/puppet.md
+25
-1
25 additions, 1 deletion
howto/puppet.md
with
25 additions
and
1 deletion
howto/puppet.md
+
25
−
1
View file @
6f3f3b60
...
...
@@ -1855,7 +1855,31 @@ label.
## Monitoring and testing
Puppet is monitored
[
using Prometheus
](
https://forge.puppet.com/puppet/prometheus_reporter
)
.
Puppet is monitored using Prometheus through the
[
Prometheus
reporter
](
https://forge.puppet.com/puppet/prometheus_reporter
)
. This is a small Ruby module that ingests reports posted
by Puppet agent to the Puppet server and writes metrics to the
Prometheus node exporter textfile collector, in
`/var/lib/prometheus/node-exporter`
.
We were previously checking Puppet
*twice*
when we were running
Icinga:
*
One job ran on the Puppetmaster and checked PuppetDB for
reports. This was done with a
[
patched
](
https://github.com/evgeni/check_puppetdb_nodes/pull/14
)
version of the
[
check_puppetdb_nodes
](
https://github.com/evgeni/check_puppetdb_nodes/
)
Nagios check, shipped inside the
`tor-nagios-checks`
Debian package
*
The same job actually runs twice; once to check all manifests, and
another to check each host individually and assign the result to
the right host.
The twin checks were present so that we could find stray Puppet hosts.
For example, if a host was retired from Icinga but not retired from
Puppet, or added to Icinga but not Puppet, we would notice. This was
necessary because the Icinga setup was not Puppetized: the twin check
now seems superfluous and we only check reports on the server.
Note that we
*could*
check agents individually with the
[
puppet agent
exporter
](
https://github.com/retailnext/puppet-agent-exporter
)
.
There are no validation checks and
*a priori*
no peer review of code:
code is directly pushed to the Puppet server without validation. Work
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment