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

[Feature Request] Improve alerting #1768

Open
timbastin opened this issue Dec 31, 2024 · 0 comments
Open

[Feature Request] Improve alerting #1768

timbastin opened this issue Dec 31, 2024 · 0 comments
Labels
enhancement New feature or request untriaged

Comments

@timbastin
Copy link

timbastin commented Dec 31, 2024

Is your feature request related to a problem? Please describe

I'm really frustrated with opensearch alerting. We are trying to collect logs and kubernetes events in a kubernetes cluster. Send them to opensearch and create an alert rule, if an error event happens. I want to display this error event in a micrsoft teams channel.

Appearantly the combination of otel and opensearch and mustache makes this sheer impossible.

Using the Open Telemetry Kubernetes Events receiver OpenSearch gets logs in a nested structure.

It looks like this:

{
  "body": "xxx",
  "resource": {
    "attributes": {
      "k8s@namespace@name": "test-namespace"
    }
  }
}

OpenSearch now automatically flattens this structure before storing it.
If I am querying, everything works fine and I get the flattened structure back like this:

{
  "body": "xxx",
  "resource.attributes.k8s@namespace@name": "test-namespace"
}

Now I want to send a message to microsoft teams, which includes the body of the message and the namespace name to get more context. This seems to be impossible for me, since I am not able to access properties containing a "." in a mustache template.

Is there any cloud-native way to fix this issue? Creating a pipeline inside the ui and afterwards updating the deployment again seems like pretty manual solution. We are using opensearch using the official helm chart.

Describe the solution you'd like

I just want to access a property with a "dot" in it. This should be possible. I never decided to explicitly flatten the object. For me it feels like opensearch just decides to flatten the nested object and thus make it impossible to create nice contexualized alerts for it.

Related component

Other

Describe alternatives you've considered

No response

Additional context

No response

@timbastin timbastin added enhancement New feature or request untriaged labels Dec 31, 2024
@dblock dblock transferred this issue from opensearch-project/OpenSearch Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request untriaged
Projects
None yet
Development

No branches or pull requests

1 participant