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

[BUG] OpenSearch Dashboard Alerting Monitor Interval #229

Closed
faabsen opened this issue Apr 26, 2022 · 2 comments
Closed

[BUG] OpenSearch Dashboard Alerting Monitor Interval #229

faabsen opened this issue Apr 26, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@faabsen
Copy link

faabsen commented Apr 26, 2022

Describe the bug

When creating monitors via the API, a user can specify an interval for a monitor. It seems like the interval is set correctly – as indicated by a get monitor call and the monitor detail overview.

image

However, when editing the monitor via the OpenSearch Dashboard UI, the previously defined interval is not applied. It looks like a default value is set [Interval: every 1 minute(s)]

image

If the monitor is created/updated via the API with the property ui_metadata, the edit monitor page displays the specified interval correctly. It seems like adding the metadata is a fix for getting correct results at the monitor edit page.

  "ui_metadata": {
      "schedule": {
         "frequency": "interval",
         "period": {
            "interval": 15,
            "unit": "MINUTES"
         }
      }
   }

However, adding the property ui_metadata leads to an error on the monitor detail page: the schedule (specified interval) for the monitor is no longer displayed.

image

To Reproduce
Steps to reproduce the behavior:
Create a query level monitor via the API with a specific interval.

Go to the OpenSearch Dashboard UI and edit the newly created monitor. The set interval is not displayed correctly on the edit monitor page.

Expected behavior
The specified interval should be displayed correctly.

OpenSearch Version
1.2.4

Dashboards Version
1.2.0

Plugins
Alerting

Host/Environment (please complete the following information):
AWS Linux 2

@faabsen faabsen added bug Something isn't working untriaged labels Apr 26, 2022
@kavilla kavilla transferred this issue from opensearch-project/OpenSearch-Dashboards Apr 26, 2022
@kavilla
Copy link
Member

kavilla commented Apr 26, 2022

Thanks for opening. Moved to alerting plugin repo.

@AWSHurneyt
Copy link
Collaborator

Fixed this bug in PR #197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants