commit | 154a01dbaead449d073c2938c56aec91e82bceb2 | [log] [tgz] |
---|---|---|
author | Michal Kobus <mkobus@mirantis.com> | Tue Nov 27 18:38:36 2018 +0100 |
committer | Michal Kobus <mkobus@mirantis.com> | Tue Nov 27 18:38:36 2018 +0100 |
tree | 81c88ad44961c1b23db9da788aec3aa5d64e73d3 | |
parent | 17726aeb011416bf5bb577790832521251daab41 [diff] |
Add license file Change-Id: Ie51e73cf8e4d9299ec33f02c8a6505e628befe52 Related-bug: PROD-24880 (PROD:24880)
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/flask run
Check in browser:
http://127.0.0.1:5000/health