Comments (9)
Yes finally got it working
You have to give
expose:
-2000
explicitly
from prometheus-msteams.
Hi @dibya001 it seems like this is the same issue as #20. Can you try adding TEAMS_REQUEST_URI=alertmanager
in your docker container?
from prometheus-msteams.
@dibya001 please also provide the log of the docker container of prometheus ms teams :)
from prometheus-msteams.
Hi when I do docker-compose up it is for promteams it is saying
promteams_1 | 2018/08/24 12:44:10 Adding request uri path //alertmanager
promteams_1 | 2018/08/24 12:44:10 prometheus-msteams server started listening at 0.0.0.0:2000
from prometheus-msteams.
I think the way I am accessing the url inside alertmanager.yml is wrong
Because When previously I ran everything(prometheus as well as prom2teams ) outside docker it was working fine
from prometheus-msteams.
@dibya001 try adding the TEAMS_REQUEST_URI
this in your docker-compose promteams service:
environment:
- TEAMS_INCOMING_WEBHOOK_URL="https://outlook.office.com/webhook/xxx"
- PROMTEAMS_DEBUG="true"
- TEAMS_REQUEST_URI="alertmanager"
from prometheus-msteams.
@dibya001 btw TEAMS_INCOMING_WEBHOOK_URL
should be your Microsoft Teams Channel webhook..
from prometheus-msteams.
Still getting the same error
logs:
promteams_1 | 2018/08/24 12:52:00 Adding request uri path /"alertmanager"
promteams_1 | 2018/08/24 12:52:00 prometheus-msteams server started listening at 0.0.0.0:2000
alertmanager_1 | level=debug ts=2018-08-24T12:55:44.017107681Z caller=notify.go:668 component=dispatcher msg="Notify attempt failed" attempt=1 integration=webhook receiver=receiver err="unexpected status code 404 from http://promteams:2000/alertmanager"
alertmanager_1 | level=error ts=2018-08-24T12:55:44.017256284Z caller=notify.go:332 component=dispatcher msg="Error on notify" err="cancelling notify retry for "webhook" due to unrecoverable error: unexpected status code 404 from http://promteams:2000/alertmanager"
alertmanager_1 | level=error ts=2018-08-24T12:55:44.017318046Z caller=dispatch.go:280 component=dispatcher msg="Notify for alerts failed" num_alerts=1 err="cancelling notify retry for "webhook" due to unrecoverable error: unexpected status code 404 from http://promteams:2000/alertmanager"
from prometheus-msteams.
met the same issue
level=error ts=2022-05-12T16:24:11.723Z caller=dispatch.go:354 component=dispatcher msg="Notify for alerts failed" num_alerts=1 err="prometheus-msteams/webhook[0]: notify retry canceled due to unrecoverable error after 1 attempts: unexpected status code 404: http://prometheus-msteams:2000/teamalert"
from prometheus-msteams.
Related Issues (20)
- [BUG] Helm repo no longer working HOT 4
- [FEATURE] Upgrade github.com/go-kit/kit to 0.12.0
- Release dependeny updates HOT 1
- Direct integration into Alertmanager? HOT 5
- [BUG] Give up the way to run "prometheus-msteams" in docker
- Image ARM Architecture HOT 2
- Grafana dashboard
- [BUG] Simulating a Prometheus Alerts to Teams Channel - results in not found
- Security Vulnerability [BUG]
- [BUG] cannot recieve alerts in MSTeams HOT 1
- [BUG] services dies when using systemctl reload prometheus_msteams.service HOT 1
- [BUG] Invalid memory address on Kubernetes v1.24 HOT 3
- [Message: Not Found] using uir static or dynamic. No Alerts are send to Teams channel
- Sunset of this repository HOT 3
- [BUG] When alerts are grouped, the card does not differentiate between status firing and resolved
- [BUG] Image tag v1.5.2 is not available anymore
- [FEATURE] Turn off automountServiceAccountToken
- [FEATURE] Timeline of new release HOT 4
- [BUG] The DEBUG logging level cannot be changed
- [BUG] Unable to pull the image from M2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prometheus-msteams.