Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • May 18 2016 15:33
    @satterly banned @sandeepl337
Burak Köseoğlu
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
Ok I think I've fixed it by adding localhost:8080\api into Client()

@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 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 ##
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
Does someone know how to configure Heartbeats with prometheus Watchdog alert?
@satterly can I change favicon?
Burak Köseoğlu

@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:



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

@FL3SH add the following two lines to alerta config:

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

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 :


Nick Satterly
@burakksglu nice one. You need to update the copyright statement in the README, tho :)
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
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
@satterly will do Nick! Thanks!
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
@p-24 Alerta supports any OpenID Connect compliant Auth provider.
Nick Satterly
Pantelis Karamolegkos
Η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.
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
@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.
@satterly sure will do that, thank you for your time
Rémy Andreetti
Hi @satterly, i need to know if its possible to purge all alerts ?
Nick Satterly
sure. you can do it using the alerta command line tool.
$ alerta delete
Deleting all alerts. Do you want to continue? [y/N]:
Rémy Andreetti
Thank you ! Ok now, can i delete alerts with specific status like closed ?
Nick Satterly
Yes. you use a filter. Have you tried typing ‘—help’ ?
$ alerta delete --help
Usage: alerta delete [OPTIONS]

  Delete alerts.

  -i, --ids UUID       List of alert IDs (can use short 8-char id)
  -q, --query QUERY    severity:"warning" AND resource:web
  -f, --filter FILTER  KEY=VALUE eg. serverity=warning resource=web
  -h, --help           Show this message and exit.
Hi, I have a question on status_change method on alerta plugins:
def status_change(self, alert, status, text):
when I the change is triggered,
is the alert, the alert PRIOR to change, or already updated?
likewise, status, text; do they reflect the NEW status/text for the alert?
or are they the ones prior to the update?
finally, on this integrations, the alert Must not be updated,right? only trigger the integration, with the parameters
Steven Bambling
After a little time away I'm trying to bootstrap myself back up on Alerta. Reading the Docs I don't see the concept of setting an occurrence threshold before a event is passed on to a plugin to page/mail, etc. Is that correct? I would need to fork one fo the plugins and have the logic added in there to drop the event if it didn't meet X,Y,Z criteria ?
I am not able to add notes, it gives me following error:
I am doing this via admin user
Nick Satterly
@kavyakul upgrade.
2 replies