Sensu dashboard.
Basic Install
Basic install
pip install sagax
Run hug’s built-in development server
SAGAX_CONFIG_FILE=/path/to/config.yml hug -m sagax.api
Production Install
Install with Cython-compiled Falcon, to be served by Gunicorn, with LDAP authentication.
pip install cython gunicorn
pip install --no-binary falcon sagax[ldap]
Then, you can run the web server:
SAGAX_CONFIG_FILE=/path/to/config.yml gunicorn -w 4 sagax.api:__hug_wsgi__
Configuration
Set the environment variable SAGAX_CONFIG_FILE to point at the path of a YAML file containing any config overrides.
Example configuration file:
# Sensu configuration must be provided (no defaults).
sensu_type: Sensu1API
sensu:
url: https://sensu.example.com
insecure: true
timeout: 5
# Defaults to NO AUTHENTICATION. Here is LDAP example.
require_authentication: true
authentication_type: ldap
ldap:
url: ldaps://ldap.example.com
user_pattern: uid={},ou=Users,dc=example,dc=com
require_groups:
- operations
# Defaults shown here.
jwt:
secret_key: overrideme!
issuer: sagax
algorithm: HS256
ttl: 1209600
# All of these settings are sent to the frontend UI, so be sure not to put
# anything sensitive in here.
frontend:
extra_css:
- http://example.com/custom-sagax-styles.css
timestamp_format: L LT z
refresh_interval: 5
silence_intervals:
- 15 minutes
- 30 minutes
- 1 hour
- 2 hours
- 4 hours
- 8 hours
- 1 day
# Table fields can be overridden here. See config.py for defaults.
fields: {}
Building
Build prerequisites:
Python 3.5+
To build:
git clone https://github.com/joshbenner/sagax.git
cd sagax
python setup.py bdist_wheel
Metadata
Release files for sagax 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sagax-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for sagax-0.1.0-py3-none-any.whl |
Release files / sagax-0.1.0-py3-none-any.whl
| Download URL | sagax-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
220e34ba7ae1e72f16a029f9883555d86c74369f925f4dc2f79c10ba091dce7b
|
|
BLAKE2b-256 checksum How to use checksums |
3a6fb3051f37894aeac38ae465bceee36f2479d941bdffc6b8d4eff40b65dac9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for sagax 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.