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

[Metric/custom threshold] Additional context might not be included correctly depending on how the data is ingested #193779

Open
maryam-saeidi opened this issue Sep 23, 2024 · 1 comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Alerting Team:obs-ux-management Observability Management User Experience Team

Comments

@maryam-saeidi
Copy link
Member

Summary

The custom and metric threshold rules have an issue with adding additional context when the data is ingested as host.hostname: 'host1' instead of host: { hostname: 'host1' }. The log threshold rule does not have such an issue, and we need to verify this issue for other rules that have additional context.

Here is the log for these 2 cases: (code)

host.hostname: 'host1' host: { hostname: 'host1' }
Image Image

How to reproduce?

Follow these steps (slack for more info)

  1. Create an index:

    DELETE /metrics-index1
    PUT /metrics-index1
    {
      "mappings": {
        "properties": {
          "host.hostname": {
            "type": "keyword"
          },
          "host.name": {
            "type": "keyword"
          }
        }
      }
    }
    
  2. Ingest some data with the following format:

      {
        "@timestamp": "${date1}",
        "host.hostname": "${content1}",
        "value": ${content2}
      }
    
  3. Create a rule that triggers an alert based on this data and group by host.hostname

  4. Check the alert document, you should not be able to see host.name in the AAD document.

Acceptance criteria

  • Add additional context to the custom and metric threshold rules regardless of how the data is ingested similar to the log threshold rule.

Thanks @bsturg for reporting this!

@maryam-saeidi maryam-saeidi added Feature:Alerting Team:obs-ux-management Observability Management User Experience Team labels Sep 23, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@maryam-saeidi maryam-saeidi added the bug Fixes for quality problems that affect the customer experience label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Alerting Team:obs-ux-management Observability Management User Experience Team
Projects
None yet
Development

No branches or pull requests

2 participants