prometheus-msteams is written in Go so ensure to install the latest stable version available.
You can also join the Microsoft Teams Channel for discussions.
We use go mod for dependency management.
make dep
Install golangci-lint.
make lint
Just run make test
.
Run integration test to a Microsoft Teams channel.
export INTEGRATION_TEST_WEBHOOK_URL=<webhook url>
go test -v ./e2e/...
Debugging is much easier with tracing.
First, run a local instance of Jaeger.
version: '2'
services:
jaeger:
container_name: jaeger
image: jaegertracing/all-in-one:latest
environment:
- COLLECTOR_ZIPKIN_HTTP_PORT=9411
ports:
- "5575:5575/udp"
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
- "16686:16686"
- "14268:14268"
- "9411:9411"
Then, use the -jaeger-trace=true
and -jaeger-agent=localhost:6831
to start the server.
Finally, access http://localhost:16686 and you should see the traces in Jaeger.