Git Product home page Git Product logo

Comments (3)

revelnode avatar revelnode commented on May 20, 2024

I just ran a test, and if I take the formated line of the log, which makes a json like the following:

{
  "@type":"MessageCard",
  "@context":"http://schema.org/extensions",
  "themeColor":"FFA500",
  "summary":"Server High Memory usage",
  "title":"Prometheus Alert (firing)",
  "sections": [
      {
          "activityTitle":"[xxxxxxx](http://alertmanager:9093)",
          "facts": [
              {
                  "name":"description",
                  "value":"xxxxxxx"
              },
              {
                  "name":"summary",
                  "value":"Server High Memory usage"
              },
              {
                  "name":"alertname",
                  "value":"high memory load"
              },
              {
                  "name":"instance",
                  "value":"10.80.40.11:9100"
              },
              {
                  "name":"job",
                  "value":"docker nodes"
              },
              {
                  "name":"monitor",
                  "value":"master"
              },
              {
                  "name":"severity",
                  "value":"warning"
              }
            ],
          "markdown":true
      }
  ]
}

And post it directly to the webhook, it works, I see the post on channel.

from prometheus-msteams.

Knappek avatar Knappek commented on May 20, 2024

That is weird. Could you please try to run prometheus-msteams locally and try send a message again (this is what I am always doing)? Do this by following these steps:

  1. export RUN_ARGS="-l localhost \
        -p 2000 \
        -w https://outlook.office.com/webhook/xxx/xxx \
        --log-level DEBUG"
    
  2. make run-osx (for Mac, if on linux or windows, first build it with the corresponding target in the Makefile, then run it similar to that command
  3. open a new tab in your terminal, navigate to ./alert/testdata and execute
    curl -X POST -d @prom_post_request.json http://localhost:2000/alertmanager
    

from prometheus-msteams.

Knappek avatar Knappek commented on May 20, 2024

closing this issue as I think it's due to misconfiguration. @revelnode feel free to re-open if you disagree.

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.