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] date_nanos time field not selectable when creating alert monitors / anomaly detectors #927

Open
JannikBrand opened this issue Apr 4, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@JannikBrand
Copy link

JannikBrand commented Apr 4, 2024

Describe the bug

If an index has a time field which has the field mapping type date_nanos, it cannot be selected within the "Visual Editor" when creating an alert monitor. You can workaround that by using the "Extraction query editor" instead or by directly creating the monitor via the OpenSearch API.

The same problem exists for creating an anomaly detector, possibly somewhere else?

To Reproduce
Steps to reproduce the behavior:

  1. Create one index containing a field with normal date type and another index containing a field with date_nanos type.

    PUT my-date
    {
      "mappings": {
        "properties": {
          "my-time": {
            "type": "date"
          }
        }
      }
    }
    
    PUT my-date-nanos
    {
      "mappings": {
        "properties": {
          "my-time": {
            "type": "date_nanos"
          }
        }
      }
    }
    
  2. Go to Alerting > Monitors > Create Monitor

  3. Select "Per query monitor" and use the "Visual Editor"

  4. Select the my-date index in the "Data source" section

  5. Select the my-time time field.

  6. Now, instead of the my-date index select the my-date-nanos index

  7. => my-time time field cannot be selected.

Expected behavior
Expect to input the date_nanos time field via the UI / Visual editor.

OpenSearch Version
2.12.0, 1.3.14.

Dashboards Version
2.12.0, 1.3.14.

Plugins
opensearch-alerting, opensearch-anomaly-detection, ...

Screenshots

image

Host/Environment (please complete the following information):

  • Chrome Version 123.0.6312.87 (Official Build) (x86_64)

Additional context

@JannikBrand JannikBrand added bug Something isn't working untriaged labels Apr 4, 2024
@kavilla
Copy link
Member

kavilla commented Apr 4, 2024

@opensearch-project/admin please re-direct this to: https://github.com/opensearch-project/alerting-dashboards-plugin

@kavilla kavilla removed the untriaged label Apr 4, 2024
@gaiksaya gaiksaya transferred this issue from opensearch-project/OpenSearch-Dashboards Apr 4, 2024
@sbcd90 sbcd90 removed the untriaged label Apr 29, 2024
@sbcd90
Copy link
Collaborator

sbcd90 commented Apr 29, 2024

@amsiglan @AWSHurneyt , could you please look into it?

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