Add monitor.pl metrics exporters to web servers#672
Draft
daaang wants to merge 1 commit intoproductionfrom
Draft
Add monitor.pl metrics exporters to web servers#672daaang wants to merge 1 commit intoproductionfrom
daaang wants to merge 1 commit intoproductionfrom
Conversation
Collaborator
Author
|
In case anybody is curious, this is what the # ************************************
# Vhost template in module puppetlabs-apache
# Managed by Puppet
# ************************************
#
<VirtualHost *:9180>
ServerName prometheus-webserver-exporter
## Vhost docroot
DocumentRoot "/usr/local/lib/prom_web_exporter"
## Alias declarations for resources outside the DocumentRoot
ScriptAlias / "/usr/local/lib/prom_web_exporter/"
## Directories, there should at least be a declaration for /usr/local/lib/prom_web_exporter
<Directory "/usr/local/lib/prom_web_exporter">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Require all granted
</Directory>
## Logging
ErrorLog "/var/log/apache2/prometheus-webserver-exporter_error.log"
ServerSignature Off
CustomLog "/var/log/apache2/prometheus-webserver-exporter_access.log" combined
## Rewrite rules
RewriteEngine On
RewriteRule ^/$ /metrics [last,redirect=permanent]
## Shibboleth
</VirtualHost> |
8c22402 to
6759750
Compare
This implements everything except the http check, which I believe we are only using for fulcrum. Everything that can has a 1-second timeout, so slow services will be considered down.
6759750 to
aef3951
Compare
skorner
reviewed
Mar 29, 2024
| include apache | ||
| } | ||
|
|
||
| apache::vhost { "prometheus-webserver-exporter": |
Member
There was a problem hiding this comment.
Not sure if you can override the default Options for the doc root, but if you can this vhost can function with None.
skorner
approved these changes
Mar 29, 2024
Member
skorner
left a comment
There was a problem hiding this comment.
This approach to, and first pass at, replicating the legacy web server monitoring that haproxy relies on to a prometheus exporter looks great to me.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.