Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • May 18 2016 15:33
    @satterly banned @sandeepl337
Nick Satterly
@satterly
Actually it's called DEFAULT_PAGE_SIZE now. See https://docs.alerta.io/en/latest/configuration.html#api-settings
@hasso if it's been ack'ed for longer than the timeout it is auto-unack'ed. There should be an option to enable this. Should be disabled by default to maintain backwards compatibility.
Yuva
@yuvarajan1989k
@satterly there is an attribute called 'id' is created and I don't know on what basis the value is assigned to this attribute. Is it possible to assign my own value to this attribute?
May  6 09:22:02 lfco-alerta alertad: 2020-05-06 09:22:02,247 alerta.plugins.cachet[12498]: [DEBUG] Cachet: {'data': {'stickied': False, 'notifications': False, 'user_id': 1, 'name': 'Uptime Health Check on test', 'status': 1, 'visible': 1, 'message': 'An uptime check on lfco-prod-191202 lfco-alerta is failing.', 'component_id': 17, 'occurred_at': '2020-05-06 09:22:02', 'updated_at': '2020-05-06 09:22:02', 'created_at': '2020-05-06 09:22:02', 'id': 109, 'is_resolved': False, 'updates': [], 'human_status': 'Investigating', 'latest_update_id': None, 'latest_status': 1, 'latest_human_status': 'Investigating', 'latest_icon': 'icon ion-flag oranges', 'permalink': 'http://****/incidents/109', 'duration': 0, 'meta': []}} request_id=4644015c-7bc6-473e-9198-ff88b6825e06 ip=10.0.6.6
Hasso Tepper
@hasso
@satterly what timeout? The one in timeout field? That's the one I set for alert expire, not for unack and it's short – 600s or even shorter in some cases.
We want our alerts not receiving duplicates expire fast, but automatic unack is complete nono in our environment.
Nick Satterly
@satterly
@hasso yes, I’ll fix it so that it’s an opt in. don’t upgrade until i have fixed it.
Yuva
@yuvarajan1989k
@satterly any help for above one..
Hasso Tepper
@hasso
@satterly NP, thanks!
Nick Satterly
@satterly
@yuvarajan1989k i have no idea. seems like a Cachet thing which I know nothing about, sorry.
Yuva
@yuvarajan1989k
@satterly noted. thank you.
FL3SH
@FL3SH
hi @satterly does docker alerta/alerta-web:7.5.4 includes new forwarder feature?
1 reply
moix
@moix
hey quick question, maybe I'm misunderstanding something, when an alert in ack status timeouts and passes to open again, it doesn't trigger status_change of a plugin, is that correct or could be a bug?
Nick Satterly
@satterly
@FL3SH yes it was added on 7.5.2
3 replies
@moix hadn't considered that. I think that's an oversight if the case.
Burak Köseoğlu
@burakksglu
image.png
Hey Nick! I'm gettin error "Expecting value: line 1 column 1 (char 0)" while trying to send these alarms. All the variable types are string. What could be wrong here any ideas?
I used pinger.py on the integrations as a base for my code. Api is assigned like this self.api = Client()
Burak Köseoğlu
@burakksglu
Ok I think I've fixed it by adding localhost:8080\api into Client()
moix
@moix

@moix hadn't considered that. I think that's an oversight if the case.

Thanks @satterly I will try again and ensure, the other day I wasn't sure what the expected should be so asked first. If I confirm will let you know or open a case in github

moix
@moix

@moix do you need the wsgi file? How were you using it? copying it to where you need it or were you referencing it where it was?

sorry missed that message, I'm using from service that runs uwsgi:

ExecStart=/alertaio/venv/bin/uwsgi --ini alerta.ini

and in alerta.ini:

## managed by puppet ##
[uwsgi]
chdir = /alertaio/app
mount = /api=./app.wsgi
callable = app
manage-script-name = true
the mount reference app.wsgi I was using it before directly from lib content but now put manually, it is better actually this way, thanks
FL3SH
@FL3SH
Does someone know how to configure Heartbeats with prometheus Watchdog alert?
FL3SH
@FL3SH
@satterly can I change favicon?
Burak Köseoğlu
@burakksglu

@satterly hey Nick! Hope you're doing great. I started on some project for an email to alerta integration. I've managed to send some alerts into alerta from email. But I'd like to start this script on startup right after my container comes alive. Do you have any suggestions to achieve tht? I've tried docker compose's command function but it breaks the container and webui doesn't start actually.

You can check out the forked repo of alerta on here if you'd like to:

https://github.com/burakksglu/alerta-contrib/blob/master/integrations/exchange2alert/imapcheck.py

viberan
@viberan

Does someone know how to configure Heartbeats with prometheus Watchdog alert?

@FL3SH add the following two lines to alerta config:

PLUGINS=['prometheus','heartbeat']
HEARTBEAT_EVENTS=['Heartbeat', 'Watchdog']

you would probably want to set timeout label in alert relabel config

        - source_labels: [alertname]
          target_label: timeout
          regex: 'Watchdog'
          replacement: '120'

and set repeat_interval in alertmanager config

  - match:
      alertname: Watchdog
    group_wait: 0s
    group_interval: 1m
    repeat_interval: 50s
    receiver: alerta

that's what I did.
The only issue is that when heartbeat status is NOT ok, the alert's environment is set to default value of 'Production'. The environment label of Watchdog alert is not honored. Seems like a bug @satterly

1 reply
Burak Köseoğlu
@burakksglu

OK I've found out how to autostart my application inside docker. I used supervisored.conf and added the command there. Also if anyone would like to contribute feel free to do so :

https://github.com/burakksglu/alerta-contrib/blob/master/integrations/exchange2alert/

Nick Satterly
@satterly
@burakksglu nice one. You need to update the copyright statement in the README, tho :)
bunboy09
@bunboy09
Hi guys
I need to integrate aso login for alerta but can't use saml , Google auth, gitlab auth
Just sso
Is there any document pls
SSO*
p-24
@p-24
Hi @satterly , adding to @bunboy09 context... we have to integrate SSO for the alerta.. but saml is not allowed within our company environment.. and other auth providers like google, github we don’t use.. we have customized authO provided.. so is there any other way to have customized auth provider.. other than the ways mentioned in the documentation.
Burak Köseoğlu
@burakksglu
@satterly will do Nick! Thanks!
ChaitanyaManthena
@ChaitanyaManthena
Hi Team,
I installed alerta 7.4.4 which is working as expected but now when i am trying to install it is installing 7.5.0 and not able to generate logs or now able to see the api
the same confi i am using
i request you to help is there any additional config needed or did i miss any thing
Nick Satterly
@satterly
@p-24 Alerta supports any OpenID Connect compliant Auth provider.
Nick Satterly
@satterly
Pantelis Karamolegkos
@pkaramol
Ηello. We are about to set up a production ready alerta in k8s and we see you support both postgres and mongo, do you have a suggestion on which one is better to use? We will use an external db in both cases just wondering if one if more preferred than the other.
ChaitanyaManthena
@ChaitanyaManthena
Hi Satterly
by mistake it got closed, my apologies
i am able to mount the /api, but couldnt able to see the alerta logs or in UI could you please guide me
Nick Satterly
@satterly
@pkaramol I would use Postgres if I was deploying a new Alerta instance.
3 replies
@ChaitanyaManthena create a gist on github with every command that you ran in order and the command output. once you’ve done that i’ll review and give you some advice. until you’ve done that i can’t waste any more time on this issue.
ChaitanyaManthena
@ChaitanyaManthena
@satterly sure will do that, thank you for your time
Rémy Andreetti
@Remy-Andreetti
Hi @satterly, i need to know if its possible to purge all alerts ?
Nick Satterly
@satterly
sure. you can do it using the alerta command line tool.
$ alerta delete
Deleting all alerts. Do you want to continue? [y/N]: