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

services errors rate slo widget #108

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions visualizations/observability/http/data/results.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 22,
"max_score": null,
"hits": []
},
"aggregations": {
"table": {
"after_key": {
"stk1": "162.142.125.177",
"stk2": "10.0.0.200"
},
"buckets": [
{
"key": {
"stk1": "10.0.0.200",
"stk2": "162.142.125.177"
},
"doc_count": 11,
"stk1": "10.0.0.200",
"stk2": "162.142.125.177",
"size": 11
},
{
"key": {
"stk1": "162.142.125.177",
"stk2": "10.0.0.200"
},
"doc_count": 11,
"stk1": "162.142.125.177",
"stk2": "10.0.0.200",
"size": 11
}
]
}
}
}
17 changes: 11 additions & 6 deletions visualizations/observability/service-duration-heatmap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Service Duration Widget

## Introduction
The Service Duration Widget for OpenSearch Dashboards uses Vega for complex visualization of service interactions. It's designed to map out relationships and dependencies in microservices architectures.
The Service Duration Widget for OpenSearch Dashboards uses Vega for complex visualization of service interactions.

## Info
This widget graphically presents service duration heat-map, ingested via [data-prepper traces pipelines](https://github.com/opensearch-project/data-prepper/blob/main/docs/trace_analytics.md), aiding in service performance monitoring and troubleshooting.
Expand Down Expand Up @@ -78,10 +78,15 @@ Avg duration per service per time bucket using the `date_histogram` aggregation
"_count": "desc"
}
},
"aggs": {
"avg_duration": {
"avg": {
"field": "durationInNanos"
"aggs":{
"status_code":{
"terms": {
"field": "status.code"
}
},
"status_code_ranges": {
"terms": {
"field": "span.attributes.http@status_code"
}
}
}
Expand All @@ -99,4 +104,4 @@ Avg duration per service per time bucket using the `date_histogram` aggregation
Required indices: `otel-v1-apm-span-*`.

## Try Me
[Open the widget in the Vega Editor](https://vega.github.io/editor/#/url/vega-lite/N4IgJAzgxgFgpgWwIYgFwhgF0wBwqgegIDc4BzJAOjIEtMYBXAI0poHsDp5kTykBaADZ04JAKyUAVhDYA7EABoQxKHKhJMaANqhMdQXDS64AD03oAygBkA8gAILcAE7EaUOBDsARBk43tZCEUQCGY9TAM0EAAVGgQ4QQBPB2dXd29ffzkHWzt4DWQcYNVBNicopkEkKABrEABfJQB3GgATejQAZgAGbqV4GjIsIxDMOCLUACYATkaQVo0UVFBZJHiohcwBPybg4iRBBg8RpDIyJz49OSDlkD14gH0mBlq4TBvQZ9f37VAauESDyQEAeEEwThosjIUUm3UmABZ+N0AIz8ZGdaLdADsqDEnVQPUovW6AC1gv9EmhkVjumJ0QjkcS+vM2FAHqoGLJzPDOsilPc4E8Xv8frcviKbjoQBSgSCwRCoTC4YiUWiMdjUL1Nd0ib0yUoKVSaXSZrCmUpWqz2WxOdzeUoIKk3ILVvEPiy2RyuQ9nE4yg8GDgcM4njbZK00MzQggHmx6CHLZ6w+ZOp0lOK3pK-gCogAzP1cuDh4KJ622ql0pRIYhkB6tTJXeS3faHQy4rFY5EANmRyMoYnh0y7XYAHCOsWJ6o1s5T0LA4LUbe8ne4S1aveYu5MqzW6w2AiMW0c0HTB6Ou5RU+PukOsSOpwoZ1FSkhWmQi84NGU10ny6h4cy1a1vWfiNoeBzHqgvbdJ0dLIrM07Sjm6A4H69ZQJg6hbKUZCOi4zo-mWXJdCOO7Afucjga2aCdvBI6dJQ8LwlinSjvCkzIg+T5zkgTjLvhq4WuuyZdF2ZF7qBB7NhBbaMjMxJcUhs4gIgSA0IIeFpIYQm-sRUyAbuIFZE2oB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