commit | 7cc23d407301b6437478b9775f8fe5c5eb61b99e | [log] [tgz] |
---|---|---|
author | Michal Kobus <mkobus@mirantis.com> | Mon Dec 14 12:57:07 2020 +0100 |
committer | Michal Kobus <mkobus@mirantis.com> | Mon Dec 14 13:22:06 2020 +0100 |
tree | 06705c8643cdeee7b233dee5a27cf9b2bb665274 | |
parent | 043c5997d44655e8ce3aaf31120db15d258e82a5 [diff] |
Bump OpenSSL-related deps - plus bandit as non-strict version breaks tests Change-Id: I180f5bcddedb7f1e8bd51a83e66587e3a194842e Related-PROD: PRODX-9916
Prometheus Alertmanager webhook receiver sending alert notification to Salesforce.
Install Python dependencies:
$ virtualenv venv $ venv/bin/pip install -e . $ source sf_notifier/vars/development
Add to settings/development.py
credentials for your Salesforce customer (not engineering) account:
SF_CONFIG = { 'AUTH_URL': 'xxx', 'USERNAME': 'xxx', 'PASSWORD': 'xxx', 'ORGANIZATION_ID': 'xxx', 'ENVIRONMENT_ID': 'xxx', 'SANDBOX_ENABLED': True }
You may also specify environment variables to override Python settings:
export SFDC_AUTH_URL="xxx" export SFDC_USERNAME="xxx" export SFDC_PASSWORD="xxx" export SFDC_ORGANIZATION_ID="xxx" export SFDC_ENVIRONMENT_ID="xxx" export SFDC_SANDBOX_ENABLED=true
Run server:
$ venv/bin/uwsgi --http 127.0.0.1:5000 --wsgi-file sf_notifier/server.py --callable app_dispatch
Check in browser:
http://127.0.0.1:5000/metrics