Skip to content

Conversation

@JohannesMahne
Copy link

Proposed commit message

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

JohannesMahne and others added 30 commits December 2, 2025 12:16
…m_color_blind palate. Add ECU rate to the dashboard.
…Also added explanation about the rest of the config.
JohannesMahne and others added 20 commits December 2, 2025 12:16
…f both, to make it easier to identify the deployment in the dashboard.
…okup index automatically when installing the package.
* dashboard control

* updating version + DV
* adding sku and cost_type to billing data for node granularity

* working on sku with pipeline to do parsing

* downplaying version

* transform
…16185)

* Add deployment_group extraction from ESS Billing tags

- Extract chargeback_group tag value to deployment_group field in billing pipeline
- Add deployment_group to billing_cluster_cost transform group_by
- Add deployment_group field definition
- Fix transforms to use elasticsearch.cluster.name without .keyword
- Update changelog for v0.2.4

* Add deployment_group extraction using runtime mappings from ESS Billing tags

* Update dashboard with deployment_group filter and definitions

* Bump version to 0.2.5 for deployment_group feature after merging SKU/cost_type changes

* known  [bug](elastic/elasticsearch-chargeback#60) from 0.2.4
* adding sku and cost_type to billing data for node granularity

* working on sku with pipeline to do parsing

* downplaying version

* transform

* merge

* dashboard

* setting version
* Add observability alerts for chargeback integration

- Add two ES|QL alerting rules: detect new chargeback groups and detect deployments missing usage data
- Add comprehensive documentation for alert setup and configuration
- Update Elasticsearch version requirement to 9.2.0+ for smart lookup join support
- Add transform startup and monitoring instructions to README

* Update changelog with PR #16205

* Remove wrong information

* Update chargeback README documentation

* Improve observability alert action message formatting

* Clarify configuration update vs add new period documentation
- Add 3 Kibana alerting rule templates:
  - Transform health monitoring for all Chargeback transforms
  - New chargeback group detection
  - Deployment with missing usage data detection
- Enable auto-start for all transforms (start: true in manifests)
- Update transform pipeline references to version 0.2.8
- Add performance warning about initial transform execution
- Update README with alerting documentation
- Bump package version to 0.2.8
@JohannesMahne JohannesMahne requested a review from a team as a code owner December 3, 2025 11:59
@JohannesMahne
Copy link
Author

Sorry, wrong branch

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds alerting rule templates to the Chargeback integration for monitoring transform health and data quality issues. The integration now includes three pre-configured alert rule templates that can be installed from Kibana: transform health monitoring, new chargeback group detection, and missing usage data detection.

Key Changes:

  • Added three alerting rule templates (transform health, new group detection, missing usage data)
  • Updated documentation to describe alerting capabilities and configuration
  • Added validation exclusion for SVR00002

Reviewed changes

Copilot reviewed 29 out of 33 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/chargeback/kibana/alerting_rule_template/chargeback-transform-health.json Adds transform health monitoring alert template
packages/chargeback/kibana/alerting_rule_template/chargeback-new-group-detected.json Adds alert for detecting new chargeback groups
packages/chargeback/kibana/alerting_rule_template/chargeback-deployment-missing-usage-data.json Adds alert for deployments missing usage data
packages/chargeback/docs/README.md Documents new alerting features and configuration
packages/chargeback/changelog.yml Records version 0.2.8 changes
packages/chargeback/validation.yml Adds validation check exclusion
packages/chargeback/manifest.yml Updates package version to 0.2.8

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"conf_query_weight": 20,
"conf_storage_weight": 40,
"conf_start_date": "2024-01-01T00:00:00.000Z",
"conf_end_date": "2024-12-31T23:tie"
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

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

Corrected spelling of 'tie' to '59:59.999Z' to complete the timestamp format.

Suggested change
"conf_end_date": "2024-12-31T23:tie"
"conf_end_date": "2024-12-31T23:59:59.999Z"

Copilot uses AI. Check for mistakes.
"conf_query_weight": 20,
"conf_storage_weight": 40,
"conf_start_date": "2024-01-01T00:00:00.000Z",
"conf_end_date": "2024-12-31T23:tie"
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

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

Corrected spelling of 'tie' to '59:59.999Z' to complete the timestamp format.

Suggested change
"conf_end_date": "2024-12-31T23:tie"
"conf_end_date": "2024-12-31T23:59:59.999Z"

Copilot uses AI. Check for mistakes.
- set:
field: cost_type
value: 'snapshots'
if: ctx.sku =~ /^(aws|gcp|azure).snapshot-storage&/
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

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

Regular expression ends with '&' instead of '.*' - this pattern will not match snapshot storage SKUs correctly. Should be /^(aws|gcp|azure).snapshot-storage.*/

Suggested change
if: ctx.sku =~ /^(aws|gcp|azure).snapshot-storage&/
if: ctx.sku =~ /^(aws|gcp|azure).snapshot-storage.*/

Copilot uses AI. Check for mistakes.
@elasticmachine
Copy link

💚 Build Succeeded

@mergify
Copy link
Contributor

mergify bot commented Dec 3, 2025

⚠️ The sha of the head commit of this PR conflicts with #16229. Mergify cannot evaluate rules on this PR. ⚠️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants