commit | fa79dc04cb48b29086f7ca23c9eee738eb2bd0dd | [log] [tgz] |
---|---|---|
author | Michal Kobus <mkobus@mirantis.com> | Thu Aug 13 13:01:27 2020 +0200 |
committer | Michal Kobus <mkobus@mirantis.com> | Thu Aug 13 13:04:41 2020 +0200 |
tree | afd6d360ee8337d7a0c559de87eba542aad757c8 | |
parent | af771fc6ab4813f44b37a93f53eee96ce68cd3b4 [diff] |
Bump PyYAML dependency Change-Id: Ia45f9c0299237506ab08a7ecb056683ec2474f03 Related-bug: PRODX-5769
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