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]: alert-node-transition feed event tags are wrong #867

Closed
dimko opened this issue Jul 12, 2023 · 1 comment
Closed

[Bug]: alert-node-transition feed event tags are wrong #867

dimko opened this issue Jul 12, 2023 · 1 comment
Labels

Comments

@dimko
Copy link

dimko commented Jul 12, 2023

Bug description

tags for event alert-node-transition should be agent, node instead they are agent, node_instance

{
	"page_size": 100,
    "results":
    {
        "hits":
        {
            "total":
            {
                "value": 1
            },
            "hits":
            [
                {
                    "_source":
                    {
                        "trace":
                        {
                            "id": "57444cf8-a8bc-4539-a5f2-bf3d8fd020e5"
                        },
                        "agent":
                        {
                            "version": "v1.40.1"
                        },
                        "@timestamp": "2023-07-12T15:09:37Z",
                        "ecs":
                        {},
                        "Netdata":
                        {
                            "notification":
                            {
                                "dispatch":
                                {
                                    "timestamp": "2023-07-12T15:09:37Z"
                                }
                            },
                            "alert":
                            {
                                "current":
                                {
                                    "value_string": "15.5%",
                                    "value": 15.46484586,
                                    "status":
                                    [
                                        "CRITICAL"
                                    ]
                                },
                                "previous":
                                {
                                    "value_string": "-",
                                    "status": "UNKNOWN"
                                },
                                "name":
                                [
                                    "hvfibenhvx"
                                ],
                                "annotations":
                                {
                                    "conf_source": "2@/etc/netdata/health.d/alert1.conf",
                                    "info": "custom alert metric"
                                },
                                "config_hash": "fae55e73-5d10-ef08-c475-294ab3d7bd28",
                                "transition":
                                {
                                    "id": "57444cf8-a8bc-4539-a5f2-bf3d8fd020e5"
                                }
                            },
                            "context":
                            {
                                "name":
                                [
                                    "system.cpu"
                                ]
                            },
                            "chart":
                            {
                                "name": "system.cpu",
                                "id": "system.cpu",
                                "family": "cpu"
                            },
                            "space":
                            {
                                "name": "Hovjndzl space",
                                "id": "52b67352-13cd-4405-8e42-01c5a9cad9c6"
                            },
                            "room":
                            [
                                {
                                    "name": "Secondary Room",
                                    "id": "d44281e1-f13d-42be-8e94-c40416cd7efc"
                                },
                                {
                                    "name": "All nodes",
                                    "id": "ba10a850-cfd7-4845-940f-357f787d4273"
                                }
                            ]
                        },
                        "host":
                        [
                            {
                                "name": "23fd914f90f7",
                                "id": "7a4913e8-c022-4fce-a897-91c1bfdb0cef"
                            }
                        ],
                        "event":
                        {
                            "ingested": "2023-07-12T15:09:38.394935965Z",
                            "provider": "alarm_processor_service",
                            "kind": "alert",
                            "created": "2023-07-12T15:09:38.386071581Z",
                            "module": "node",
                            "action": "alert-node-transition",
                            "id": "3df4b8d8-cbf5-40db-a00d-33176786fe16",
                            "type":
                            [
                                "change"
                            ]
                        },
                        "tags":
                        [
                            "alert",
                            "node_instance"
                        ]
                    },
                    "sort":
                    [
                        1689174577000
                    ]
                }
            ]
        }
    }
}

Expected behavior

tags for event alert-node-instance should be agent

Steps to reproduce

  1. Trigger an alert to an agent
  2. Check event tags in feed

Screenshots

No response

Error Logs

No response

Desktop

Additional context

No response

@dimko dimko changed the title [Bug]: alert-node-instance feed event tags are wrong [Bug]: alert-node-transition feed event tags are wrong Jul 12, 2023
@vkuznecovas vkuznecovas reopened this Jul 13, 2023
@vkuznecovas
Copy link

I've issued a fix for this, will close once it's deployed across envs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants