A Prometheus webhook receiver that generates ServiceNow incidents.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
- golang
yum/apt-get/brew install go
Setup your local environment and produce the snogo binary.
$ export GOPATH='/home/me/some/path'
$ go get -u github.com/healthpartnersoss/snogo
This will produce a working binary.
Use environment variables to change the behavior of Snogo.
export SERVICE_NOW_INSTANCE_NAME='service_now_org'
export SERVICE_NOW_USERNAME='me'
export SERVICE_NOW_PASSWORD='secretme'
Execute snogo.
./snogo
When executed, Snogo will begin listening on port 8080 and is ready to receive Alertmanager events.
The last step (external to running this binary) is to point an alertmanager webhook receiver at Snogo.
- name: service-now
webhook_configs:
- send_resolved: false
url: http://localhost:8080/
We use the built-in go test
mechanism for coverage.
go test
- Execute the binary as a system user
- Open port 8080 (by default)
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Jesse Olson - Prometheus work - HealthPartners
- James McShane - ServiceNow work - HealthPartners
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details