-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making host_exporter a Flask app that runs via mod_wsgi
- Loading branch information
1 parent
04e9da9
commit 754de72
Showing
4 changed files
with
37 additions
and
49 deletions.
There are no files selected for viewing
29 changes: 14 additions & 15 deletions
29
perfsonar-host-metrics/perfsonar-host-metrics/apache-perfsonar_host_exporter.conf
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
<IfModule proxy_module> | ||
ProxyRequests Off | ||
<Proxy *> | ||
<IfVersion >= 2.4> | ||
Require all granted | ||
</IfVersion> | ||
<IfVersion < 2.4> | ||
Order deny,allow | ||
Allow from all | ||
</IfVersion> | ||
</Proxy> | ||
# WSGI settings | ||
WSGIDaemonProcess host_exporter display-name=host_exporter user=perfsonar group=perfsonar threads=5 | ||
WSGIScriptAlias /perfsonar_host_exporter /var/www/html/perfsonar/host_exporter/host_exporter.wsgi | ||
WSGIApplicationGroup %{GLOBAL} | ||
|
||
ProxyPass /perfsonar_host_exporter http://localhost:11284 status=+I | ||
ProxyPassReverse /perfsonar_host_exporter http://localhost:11284 status=+I | ||
ProxyPreserveHost On | ||
</IfModule> | ||
<Directory /var/www/html/perfsonar/host_exporter> | ||
|
||
SSLRequireSSL | ||
|
||
WSGIProcessGroup host_exporter | ||
WSGIApplicationGroup host_exporter | ||
|
||
Require all granted | ||
|
||
</Directory> |
8 changes: 8 additions & 0 deletions
8
perfsonar-host-metrics/perfsonar-host-metrics/host_exporter.wsgi
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# WSGI File for host_exporter | ||
# | ||
import sys | ||
|
||
sys.path.insert(0, '/var/www/html/perfsonar/host_exporter') | ||
|
||
from host_exporter.perfsonar_host_exporter import app as application |
12 changes: 0 additions & 12 deletions
12
perfsonar-host-metrics/perfsonar-host-metrics/perfsonar-host-exporter.service
This file was deleted.
Oops, something went wrong.
This file contains 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