Skip to content

HealthPartners/snogo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snogo

Go Report CardMaintainabilityBuild Statuscodecov.io MIT License

A Prometheus webhook receiver that generates ServiceNow incidents.

Getting Started

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.

Prerequisites

  • golang
yum/apt-get/brew install go

Installing

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/

Running the tests

We use the built-in go test mechanism for coverage.

go test

Deployment

  • Execute the binary as a system user
  • Open port 8080 (by default)

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A tool that translates Prometheus alerts to ServiceNow incidents

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages