Giter Club home page Giter Club logo

Comments (9)

dibya001 avatar dibya001 commented on May 27, 2024 1

Yes finally got it working
You have to give
expose:
-2000
explicitly

from prometheus-msteams.

bzon avatar bzon commented on May 27, 2024

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.

bzon avatar bzon commented on May 27, 2024

@dibya001 please also provide the log of the docker container of prometheus ms teams :)

from prometheus-msteams.

dibya001 avatar dibya001 commented on May 27, 2024

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.

dibya001 avatar dibya001 commented on May 27, 2024

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.

bzon avatar bzon commented on May 27, 2024

@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.

bzon avatar bzon commented on May 27, 2024

@dibya001 btw TEAMS_INCOMING_WEBHOOK_URL should be your Microsoft Teams Channel webhook..

from prometheus-msteams.

dibya001 avatar dibya001 commented on May 27, 2024

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.

helinyi avatar helinyi commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.