question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can not add alert from UI

See original GitHub issue

On Trying to add alert through UI, getting the following error image

{"message":"(psycopg2.ProgrammingError) can't adapt type 'dict'\n[SQL: INSERT INTO alert (alert_name, alert_type, data_source, alert_query, alert_settings, kpi, kpi_alert_type, severity_cutoff_score, alert_message, alert_frequency, alert_channel, alert_channel_conf, active, created_at, last_alerted) VALUES (%(alert_name)s, %(alert_type)s, %(data_source)s, %(alert_query)s, %(alert_settings)s, %(kpi)s, %(kpi_alert_type)s, %(severity_cutoff_score)s, %(alert_message)s, %(alert_frequency)s, %(alert_channel)s, %(alert_channel_conf)s, %(active)s, %(created_at)s, %(last_alerted)s) RETURNING alert.id]\n[parameters: {'alert_name': 'abcd', 'alert_type': 'KPI Alert', 'data_source': {'active': True, 'connection_status': 'connected', 'connection_type': 'Postgres', 'created_at': 'Sat, 18 Sep 2021 08:28:25 GMT', 'id': 4, 'is_third_party': False, 'last_sync': None, 'name': 'Cloud Failure', 'sync_status': None}, 'alert_query': '', 'alert_settings': '', 'kpi': 15, 'kpi_alert_type': 'Anomaly', 'severity_cutoff_score': 7, 'alert_message': 'Test alert', 'alert_frequency': 'daily', 'alert_channel': 'slack', 'alert_channel_conf': '\"{}\"', 'active': True, 'created_at': datetime.datetime(2021, 10, 2, 11, 23, 44, 266857), 'last_alerted': None}]\n(Background on this error at: http://sqlalche.me/e/14/f405)","status":"failure"}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
varunp2kcommented, Oct 7, 2021

I checked this now and it works. Ill close this issue.

On Thu, Oct 7, 2021 at 12:58 PM Varun P @.***> wrote:

Okay. I will get on this.

On Thu, Oct 7, 2021 at 12:46 PM Amogh Dhar Diwan @.***> wrote:

@varunp2k https://github.com/varunp2k I don’t think so, please take a look

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/chaos-genius/chaos_genius/issues/243#issuecomment-937520685, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALCLZBYT7LIHAU3CLGCOEITUFVCM5ANCNFSM5FGJUDRQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

0reactions
Samyak2commented, Oct 8, 2021

This was a frontend issue, fixed in c2d225fbe6b63cf8b785515edd52143cbd89a5f0

Read more comments on GitHub >

github_iconTop Results From Across the Web

No error shown when alertmanager alert config cannot be ...
Open the Prometheus UI and go to the "Alerts" tab. If you created a new alert on the metrics dashboard page, the alert...
Read more >
Solved: Add an alert(pop-up message) to the UI action when...
I need to add an alert(pop-up message) as "Please close all Ptasks ... alert("test"); alert is not working in server script( like UI...
Read more >
AlertRules created via the API are unchangeable via the UI
What you expected to happen: The alert is changed/deleted. How to reproduce it (as minimally and precisely as possible): Create an AlertRule via ......
Read more >
Alerts - Presentation - Human Interface Guidelines - Design
Avoid displaying alerts for common, undoable actions, even when they're destructive. For example, you don't need to alert people about data loss every...
Read more >
Add the Prometheus Alert Manager UI - sbcode.net
In this lesson I will set up the prometheus-alertmanager from binary which can be downloaded ... you won't be able to see the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found