-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add monitor.pl metrics exporters to web servers #672
base: production
Are you sure you want to change the base?
Conversation
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
include apache | ||
} | ||
|
||
apache::vhost { "prometheus-webserver-exporter": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if you can override the default Options for the doc root, but if you can this vhost can function with None.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
No description provided.