Skip to content

add title to rule gap histogram in the rules dashboard#225274

Merged
denar50 merged 4 commits intoelastic:mainfrom
denar50:add-title-to-rule-gaps-histogram
Jun 30, 2025
Merged

add title to rule gap histogram in the rules dashboard#225274
denar50 merged 4 commits intoelastic:mainfrom
denar50:add-title-to-rule-gaps-histogram

Conversation

@denar50
Copy link
Copy Markdown
Contributor

@denar50 denar50 commented Jun 25, 2025

Summary

fixes #224518
This PR adds a title to the rule gap histogram in the rules dashboard.

How was this tested?

I added the title to the JSON file and then updated the dashboard by calling:

curl -X POST http://localhost:5601/internal/detection_engine/health/_setup -u elastic:changeme -H 'kbn-xsrf: 123' -H "x-elastic-internal-origin: Kibana" -H "elastic-api-version: 1"

Before:
Elastic Security  Detection rule monitoring(1)

After:
Elastic Security  Detection rule monitoring

@denar50 denar50 self-assigned this Jun 25, 2025
@denar50 denar50 added release_note:fix Team:Detection Engine Security Solution Detection Engine Area backport:version Backport to applied version labels v9.1.0 v8.19.0 labels Jun 25, 2025
@denar50
Copy link
Copy Markdown
Contributor Author

denar50 commented Jun 25, 2025

/ci

@denar50 denar50 marked this pull request as ready for review June 25, 2025 13:52
@denar50 denar50 requested a review from a team as a code owner June 25, 2025 13:52
@denar50 denar50 requested a review from jkelas June 25, 2025 13:52
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/security-detection-engine (Team:Detection Engine)

Copy link
Copy Markdown
Contributor

@jkelas jkelas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed the changes and this looks good.
I confirm that the "Rule gap histogram" appears as the title in the dashboard.

But shouldn't we also update the tests in x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/rule_monitoring/logic/detection_engine_health/assets/assets.test.ts, @denar50 ?

Screenshot 2025-06-27 at 10 20 21

OLD:

Screen.Recording.2025-06-27.at.09.58.27.mov

NEW:

Screen.Recording.2025-06-27.at.10.11.10.mov

@denar50
Copy link
Copy Markdown
Contributor Author

denar50 commented Jun 30, 2025

@jkelas I have added a unit test for this case

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Jun 30, 2025

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #33 / EQL execution logic API @ess @serverless @serverlessQA EQL type rules uses the provided timestamp_field

Metrics [docs]

✅ unchanged

History

cc @denar50

Copy link
Copy Markdown
Contributor

@jkelas jkelas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested that this PR fixes the issue from the ticket correctly.
My comment also has been addressed.
I am approving.

@denar50 denar50 merged commit 6a2aea3 into elastic:main Jun 30, 2025
10 checks passed
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.19, 9.1

https://github.com/elastic/kibana/actions/runs/15974616539

@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.19, 9.1

https://github.com/elastic/kibana/actions/runs/15974623904

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 30, 2025
## Summary
fixes elastic#224518
This PR adds a title to the rule gap histogram in the rules dashboard.

## How was this tested?
I added the title to the JSON file and then updated the dashboard by
calling:
```
curl -X POST http://localhost:5601/internal/detection_engine/health/_setup -u elastic:changeme -H 'kbn-xsrf: 123' -H "x-elastic-internal-origin: Kibana" -H "elastic-api-version: 1"
```

Before:
![Elastic Security Detection rule
monitoring(1)](https://github.com/user-attachments/assets/c0a125e8-1269-4989-8960-285009edd1a2)

After:
![Elastic Security Detection rule
monitoring](https://github.com/user-attachments/assets/0cd67690-fa88-4360-a497-e9d135c5a629)

(cherry picked from commit 6a2aea3)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 30, 2025
## Summary
fixes elastic#224518
This PR adds a title to the rule gap histogram in the rules dashboard.

## How was this tested?
I added the title to the JSON file and then updated the dashboard by
calling:
```
curl -X POST http://localhost:5601/internal/detection_engine/health/_setup -u elastic:changeme -H 'kbn-xsrf: 123' -H "x-elastic-internal-origin: Kibana" -H "elastic-api-version: 1"
```

Before:
![Elastic Security Detection rule
monitoring(1)](https://github.com/user-attachments/assets/c0a125e8-1269-4989-8960-285009edd1a2)

After:
![Elastic Security Detection rule
monitoring](https://github.com/user-attachments/assets/0cd67690-fa88-4360-a497-e9d135c5a629)

(cherry picked from commit 6a2aea3)
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.19
9.1

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 30, 2025
## Summary
fixes elastic#224518
This PR adds a title to the rule gap histogram in the rules dashboard.

## How was this tested?
I added the title to the JSON file and then updated the dashboard by
calling:
```
curl -X POST http://localhost:5601/internal/detection_engine/health/_setup -u elastic:changeme -H 'kbn-xsrf: 123' -H "x-elastic-internal-origin: Kibana" -H "elastic-api-version: 1"
```

Before:
![Elastic Security Detection rule
monitoring(1)](https://github.com/user-attachments/assets/c0a125e8-1269-4989-8960-285009edd1a2)

After:
![Elastic Security Detection rule
monitoring](https://github.com/user-attachments/assets/0cd67690-fa88-4360-a497-e9d135c5a629)

(cherry picked from commit 6a2aea3)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 30, 2025
## Summary
fixes elastic#224518
This PR adds a title to the rule gap histogram in the rules dashboard.

## How was this tested?
I added the title to the JSON file and then updated the dashboard by
calling:
```
curl -X POST http://localhost:5601/internal/detection_engine/health/_setup -u elastic:changeme -H 'kbn-xsrf: 123' -H "x-elastic-internal-origin: Kibana" -H "elastic-api-version: 1"
```

Before:
![Elastic Security Detection rule
monitoring(1)](https://github.com/user-attachments/assets/c0a125e8-1269-4989-8960-285009edd1a2)

After:
![Elastic Security Detection rule
monitoring](https://github.com/user-attachments/assets/0cd67690-fa88-4360-a497-e9d135c5a629)

(cherry picked from commit 6a2aea3)
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.19
9.1

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jun 30, 2025
#225848)

# Backport

This will backport the following commits from `main` to `9.1`:
- [add title to rule gap histogram in the rules dashboard
(#225274)](#225274)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Edgar
Santos","email":"edgar.santos@elastic.co"},"sourceCommit":{"committedDate":"2025-06-30T13:43:21Z","message":"add
title to rule gap histogram in the rules dashboard (#225274)\n\n##
Summary\nfixes #224518 \nThis PR
adds a title to the rule gap histogram in the rules dashboard.\n\n## How
was this tested?\nI added the title to the JSON file and then updated
the dashboard by\ncalling:\n```\ncurl -X POST
http://localhost:5601/internal/detection_engine/health/_setup -u
elastic:changeme -H 'kbn-xsrf: 123' -H \"x-elastic-internal-origin:
Kibana\" -H \"elastic-api-version: 1\"\n```\n\nBefore:\n![Elastic
Security Detection
rule\nmonitoring(1)](https://github.com/user-attachments/assets/c0a125e8-1269-4989-8960-285009edd1a2)\n\nAfter:\n![Elastic
Security Detection
rule\nmonitoring](https://github.com/user-attachments/assets/0cd67690-fa88-4360-a497-e9d135c5a629)","sha":"6a2aea3311b7567240aa88a83f13ad16beed166e","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Detection
Engine","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"add
title to rule gap histogram in the rules
dashboard","number":225274,"url":"https://github.com/elastic/kibana/pull/225274","mergeCommit":{"message":"add
title to rule gap histogram in the rules dashboard (#225274)\n\n##
Summary\nfixes #224518 \nThis PR
adds a title to the rule gap histogram in the rules dashboard.\n\n## How
was this tested?\nI added the title to the JSON file and then updated
the dashboard by\ncalling:\n```\ncurl -X POST
http://localhost:5601/internal/detection_engine/health/_setup -u
elastic:changeme -H 'kbn-xsrf: 123' -H \"x-elastic-internal-origin:
Kibana\" -H \"elastic-api-version: 1\"\n```\n\nBefore:\n![Elastic
Security Detection
rule\nmonitoring(1)](https://github.com/user-attachments/assets/c0a125e8-1269-4989-8960-285009edd1a2)\n\nAfter:\n![Elastic
Security Detection
rule\nmonitoring](https://github.com/user-attachments/assets/0cd67690-fa88-4360-a497-e9d135c5a629)","sha":"6a2aea3311b7567240aa88a83f13ad16beed166e"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/225274","number":225274,"mergeCommit":{"message":"add
title to rule gap histogram in the rules dashboard (#225274)\n\n##
Summary\nfixes #224518 \nThis PR
adds a title to the rule gap histogram in the rules dashboard.\n\n## How
was this tested?\nI added the title to the JSON file and then updated
the dashboard by\ncalling:\n```\ncurl -X POST
http://localhost:5601/internal/detection_engine/health/_setup -u
elastic:changeme -H 'kbn-xsrf: 123' -H \"x-elastic-internal-origin:
Kibana\" -H \"elastic-api-version: 1\"\n```\n\nBefore:\n![Elastic
Security Detection
rule\nmonitoring(1)](https://github.com/user-attachments/assets/c0a125e8-1269-4989-8960-285009edd1a2)\n\nAfter:\n![Elastic
Security Detection
rule\nmonitoring](https://github.com/user-attachments/assets/0cd67690-fa88-4360-a497-e9d135c5a629)","sha":"6a2aea3311b7567240aa88a83f13ad16beed166e"}}]}]
BACKPORT-->

Co-authored-by: Edgar Santos <edgar.santos@elastic.co>
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jul 1, 2025
@kibanamachine
Copy link
Copy Markdown
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @denar50

kibanamachine added a commit that referenced this pull request Jul 1, 2025
… (#225847)

# Backport

This will backport the following commits from `main` to `8.19`:
- [add title to rule gap histogram in the rules dashboard
(#225274)](#225274)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Edgar
Santos","email":"edgar.santos@elastic.co"},"sourceCommit":{"committedDate":"2025-06-30T13:43:21Z","message":"add
title to rule gap histogram in the rules dashboard (#225274)\n\n##
Summary\nfixes #224518 \nThis PR
adds a title to the rule gap histogram in the rules dashboard.\n\n## How
was this tested?\nI added the title to the JSON file and then updated
the dashboard by\ncalling:\n```\ncurl -X POST
http://localhost:5601/internal/detection_engine/health/_setup -u
elastic:changeme -H 'kbn-xsrf: 123' -H \"x-elastic-internal-origin:
Kibana\" -H \"elastic-api-version: 1\"\n```\n\nBefore:\n![Elastic
Security Detection
rule\nmonitoring(1)](https://github.com/user-attachments/assets/c0a125e8-1269-4989-8960-285009edd1a2)\n\nAfter:\n![Elastic
Security Detection
rule\nmonitoring](https://github.com/user-attachments/assets/0cd67690-fa88-4360-a497-e9d135c5a629)","sha":"6a2aea3311b7567240aa88a83f13ad16beed166e","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Detection
Engine","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"add
title to rule gap histogram in the rules
dashboard","number":225274,"url":"https://github.com/elastic/kibana/pull/225274","mergeCommit":{"message":"add
title to rule gap histogram in the rules dashboard (#225274)\n\n##
Summary\nfixes #224518 \nThis PR
adds a title to the rule gap histogram in the rules dashboard.\n\n## How
was this tested?\nI added the title to the JSON file and then updated
the dashboard by\ncalling:\n```\ncurl -X POST
http://localhost:5601/internal/detection_engine/health/_setup -u
elastic:changeme -H 'kbn-xsrf: 123' -H \"x-elastic-internal-origin:
Kibana\" -H \"elastic-api-version: 1\"\n```\n\nBefore:\n![Elastic
Security Detection
rule\nmonitoring(1)](https://github.com/user-attachments/assets/c0a125e8-1269-4989-8960-285009edd1a2)\n\nAfter:\n![Elastic
Security Detection
rule\nmonitoring](https://github.com/user-attachments/assets/0cd67690-fa88-4360-a497-e9d135c5a629)","sha":"6a2aea3311b7567240aa88a83f13ad16beed166e"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/225274","number":225274,"mergeCommit":{"message":"add
title to rule gap histogram in the rules dashboard (#225274)\n\n##
Summary\nfixes #224518 \nThis PR
adds a title to the rule gap histogram in the rules dashboard.\n\n## How
was this tested?\nI added the title to the JSON file and then updated
the dashboard by\ncalling:\n```\ncurl -X POST
http://localhost:5601/internal/detection_engine/health/_setup -u
elastic:changeme -H 'kbn-xsrf: 123' -H \"x-elastic-internal-origin:
Kibana\" -H \"elastic-api-version: 1\"\n```\n\nBefore:\n![Elastic
Security Detection
rule\nmonitoring(1)](https://github.com/user-attachments/assets/c0a125e8-1269-4989-8960-285009edd1a2)\n\nAfter:\n![Elastic
Security Detection
rule\nmonitoring](https://github.com/user-attachments/assets/0cd67690-fa88-4360-a497-e9d135c5a629)","sha":"6a2aea3311b7567240aa88a83f13ad16beed166e"}}]}]
BACKPORT-->

Co-authored-by: Edgar Santos <edgar.santos@elastic.co>
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:fix Team:Detection Engine Security Solution Detection Engine Area v8.19.0 v9.1.0 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Security Solution][Bug] No Title displayed for Rule gaps histogram and inspect flyout.

5 participants