by

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
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]:
Rémy Andreetti
@Remy-Andreetti
Thank you ! Ok now, can i delete alerts with specific status like closed ?
Nick Satterly
@satterly
Yes. you use a filter. Have you tried typing ‘—help’ ?
$ alerta delete --help
Usage: alerta delete [OPTIONS]

  Delete alerts.

Options:
  -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.
PedroMSantosD
@PedroMSantosD
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
@smbambling
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 ?
kavyakul
@kavyakul
Hi,
I am not able to add notes, it gives me following error:
image.png
I am doing this via admin user
Nick Satterly
@satterly
@kavyakul upgrade.
2 replies
kavyakul
@kavyakul

@satterly can you please help to point out which setting might be causing the auto timeout of ACK alerts

I have not changed any timeout config

2 replies
image.png
kavyakul
@kavyakul
Its regarding urlmon integration.
I am unable to run alerta-urlmon (alerta version 7.5.5). Am I missing something?
Successfully installed alerta-urlmon-3.3.0
alerta@a0a27ce0f1b2:/urlmon$ alerta-urlmon
Traceback (most recent call last):
  File "/venv/bin/alerta-urlmon", line 11, in <module>
    load_entry_point('alerta-urlmon==3.3.0', 'console_scripts', 'alerta-urlmon')()
  File "/venv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 490, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/venv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2853, in load_entry_point
    return ep.load()
  File "/venv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2453, in load
    return self.resolve()
  File "/venv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2459, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/venv/lib/python3.7/site-packages/urlmon.py", line 54, in <module>
    import settings
ModuleNotFoundError: No module named 'settings'
Pantelis Karamolegkos
@pkaramol
Ιs alerta compatible with postrgesql12 ? has it been tested? Would you advise against using it with postgresql12?
Pantelis Karamolegkos
@pkaramol

I have set up the following variables

AUTH_REQUIRED=true
SIGNUP_ENABLED=false

however, when accessing the web page, I am able to see the dashboard of alerta even without being logged in? Is this normal? Shouldn't I be landing on a login page?

Screenshot-2020-05-28-at-5-43-07-PM.png

Nick Satterly
@satterly
@pkaramol i’ve answered this in your github issue alerta/alerta#1229
and i would probably advise against postgres 12 at this stage. i need to update the test pipeline to take into account multiple versions of database. at the moment i only test against the lowest supported versions of mongo and postgres.
Lars Van Casteren
@cukal

Hi, quick question: I'm running docker 7.5.5 set up with Prometheus / Alertmanager, all working, all good!
I noticed that there are some nightly incoming alerts that make it all the way through to Alerta and after a while get cleared automatically by alertmanager so all good.

I can't seem to find them anymore using the alerta frontend after a while? Is this the housekeeping that removes them? Checking the About page I do see count alerts etc but there's nothing anymore.

If so, how can I increase the housekeeping parameter to, let's say, keep everything for 1 month?

Thanks!

Lars Van Casteren
@cukal
Just came across: alerta/docker-alerta#119