Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get instance of servers down #33

Open
huy-vt opened this issue Mar 9, 2018 · 6 comments
Open

How to get instance of servers down #33

huy-vt opened this issue Mar 9, 2018 · 6 comments
Labels

Comments

@huy-vt
Copy link

huy-vt commented Mar 9, 2018

Hi !
I have encountered some trouble is when alert via telegram is only like below:
Status: FIRING 🔥
Active Alert List:
Alert:
Current value:Severity: critical
Active from:
How can I get the server down?
Thanks u so much !!

@hryamzik
Copy link
Collaborator

I would start debugging this from Prometheus and Alertmanager UI. Most likely something is wrong with your rules. It could also make sense to get API call from alertmanager to prometheus_bot, it's in json format and easy to read and verify.

@huy-vt
Copy link
Author

huy-vt commented Mar 19, 2018

Thanks very much bro @hryamzik � ,I would like to ask more , Can telegram bots be add from CHAT GROUP ID?

@hryamzik
Copy link
Collaborator

Do you mean reporting to a chat group? Yes it can.

@huy-vt
Copy link
Author

huy-vt commented Mar 19, 2018

@hryamzik because , i add a ID group from telegram but log return " Error sending message: Bad Request: chat not found"

@hryamzik
Copy link
Collaborator

That should mean that bot is not in this chat group or you have an error in chat group ID, I guess you may have missed - in it – chat group IDs are negative.

@huy-vt
Copy link
Author

huy-vt commented Mar 21, 2018

@hryamzik Hello bro ,
Can I ask a question as to why when sending a message about a telegram, the message is identical, there is a way to send a message but all the servers down .

#route default
route:
  group_by: ['alertname']
  group_wait: 30s
  group_interval: 30s
  repeat_interval: 7s
  receiver: default
  routes:
#  - match:
#      severity: "critical"
#    receiver: telegram
  - match:
      severity: "critical"
    receiver: default
#  - match:
#      severity: "warning"
#    receiver: thiennt
inhibit_rules:
- source_match:
    severity: 'warning'
#  target_match:
#    severity: 'warning'
# Apply inhibition if the alertname is the same.
  equal: ['alertname']
receivers:
- name: 'default'
  webhook_configs:
  - send_resolved: True
    url: http://127.0.0.1:9087/alert/371135891

file config alermanager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants