Giter Site home page Giter Site logo

Comments (3)

darkfessing avatar darkfessing commented on May 28, 2024 1

Thank you, looks like everything is fine now.

BTW I`ve also resolved my problem with pretty-Markdown notifications. As I mentioned my error here: #66 (comment) (some hell happening with links after "Source: ...")

I found a solution in the alertmanager config (externalURL with empty string):

  config:
    global:
    route:
      group_by: ['namespace','alertname', 'instance', 'severity']
      group_wait: 30s
      group_interval: 5m
      repeat_interval: 12h
      receiver: 'telepush'
    receivers:
    - name: 'telepush'
      webhook_configs:
        - url: 'http://1.1.X.XXX:XXXX/api/inlets/alertmanager/XXXXXX?disable_markdown=false&disable_link_previews=true'
          http_config:
  externalURL: ''

This disables "Source:" in notifications text (no need to disable Markdown in Telepush).

from telepush.

darkfessing avatar darkfessing commented on May 28, 2024

Thx) Just updated my telepush and tried again. Looks like I've received new/old error?

Alertmanager:
ts=2023-12-28T23:49:28.953Z caller=dispatch.go:352 level=error component=dispatcher msg="Notify for alerts failed" num_alerts=3 err="telepush/webhook[0]: notify retry canceled due to unrecoverable error after 1 attempts: unexpected status code 400: http://1.1.X.XXX:8080/api/inlets/alertmanager/XXXXXX?disable_markdown=true&disable_link_previews=true: telegram api returned status 400: 'Bad Request: message is too long'\n"

Telepush:
2023/12/28 23:49:28 error: telegram api returned status 400: 'Bad Request: message is too long'

I guess new query options ignores "-truncateMsgs true"?

Telepush deployed locally by:

docker run -it -d \
    -p 8080:8080 \
    -v telepush_data:/srv/data \
    --name telepush \
    darkfess/telepush \
    -mode poll \
    -token xxxxxxxxxxxxxxxxx \
    -truncateMsgs true

from telepush.

muety avatar muety commented on May 28, 2024

Sorry, found another little bug in the truncation. Please try if the latest fix works for you (didn't push a new release / new Docker, yet).

from telepush.

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.