Giter Club home page Giter Club logo

Comments (8)

bzon avatar bzon commented on May 27, 2024

Can you try manually sending an alert to your teamreceiver.

curl -X POST -d @sample_alert.json http://TEAM_RECEIVER_IP:2000/alertmanager

Where sample_alert.json is like:

{
    "version": "4",
    "groupKey": "{}:{alertname=\"high_memory_load\"}",
    "status": "firing",
    "receiver": "teams_proxy",
    "groupLabels": {
        "alertname": "high_memory_load"
    },
    "commonLabels": {
        "alertname": "high_memory_load",
        "monitor": "master",
        "severity": "warning"
    },
    "commonAnnotations": {
        "summary": "Server High Memory usage"
    },
    "externalURL": "http://alertmanager:9093",
    "alerts": [
        {
            "labels": {
                "alertname": "high_memory_load",
                "instance": "10.80.40.11:9100",
                "job": "docker_nodes",
                "monitor": "master",
                "severity": "warning"
            },
            "annotations": {
                "description": "xxxxxxx",
                "summary": "Server High Memory usage"
            },
            "startsAt": "2018-03-07T06:33:21.873077559-05:00",
            "endsAt": "0001-01-01T00:00:00Z"
        }
    ]
}

from prometheus-msteams.

dibya001 avatar dibya001 commented on May 27, 2024

I will create a file called alert.json?

from prometheus-msteams.

dibya001 avatar dibya001 commented on May 27, 2024

Yes Now it worked

from prometheus-msteams.

bzon avatar bzon commented on May 27, 2024

@dibya001 the curl commands works? Maybe you have a communication issue between alert manager and the prometheus-msteams. Please ensure that you can resolve the host teamreceiver:2000 from your alertmanager host or container (if you are using docker).

from prometheus-msteams.

dibya001 avatar dibya001 commented on May 27, 2024

Hey I am seeing a weird issue When I curl manually with the ip address, then the prometheus alert manager which is running through docker is able to send an alert . So then when I restart docker-compose, it does not work

from prometheus-msteams.

dibya001 avatar dibya001 commented on May 27, 2024

getting this error

Error: 400 Bad Request
alertmanager_1 | level=debug ts=2018-09-06T13:44:12.769512Z caller=notify.go:668 component=dispatcher msg="Notify attempt failed" attempt=9 integration=webhook receiver=receiver err="unexpected status code 500 from http://teamreceiver:2000/alertmanager"

from prometheus-msteams.

bzon avatar bzon commented on May 27, 2024

@dibya001 may I see the log of the alertmanager container? I'm suspecting that you may have misconfigured something.

from prometheus-msteams.

bzon avatar bzon commented on May 27, 2024

@dibya001 feel free to reopen this issue if you still encounter errors. Please provide logs of the prometheus-msteams server/container as requested.

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.