Skip to content

Commit 5d1d3d5

Browse files
committed
chargeback: package-spec alignment for alerting templates
- Bump format_version to 3.5.0 (same track as integrations that ship kibana/alerting_rule_template) so built zips validate against current package-spec kibana layout. - Remove validation.yml SVR00002 exclusion; dashboard already satisfies the time-filter check. - README: note Kibana 9.2+ requirement for alert rule templates. Addresses review feedback on #18102 (alerting_rule_template zip validation warning; clarify alerting vs stack version). Made-with: Cursor
1 parent bf54227 commit 5d1d3d5

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

packages/chargeback/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# newer versions go on top
22
- version: 0.3.1
33
changes:
4-
- description: "Rename config and billing fields to chargeable-unit terminology (conf_chargeable_unit_rate, conf_chargeable_unit_rate_unit, total_chargeable_units). Fix billing_cluster_cost when ess.billing.deployment_tags is a string. Add dashboard @timestamp exists filter for package validation. Update dashboard ES|QL, ingest pipeline, and documentation. Bump transform pipeline and fleet_transform_version to 0.3.1. Dashboard ES|QL uses COALESCE so 0.3.0 lookup documents remain compatible after in-place upgrade."
4+
- description: "Rename config and billing fields to chargeable-unit terminology (conf_chargeable_unit_rate, conf_chargeable_unit_rate_unit, total_chargeable_units). Fix billing_cluster_cost when ess.billing.deployment_tags is a string. Add dashboard @timestamp exists filter for package validation. Update dashboard ES|QL, ingest pipeline, and documentation. Bump transform pipeline and fleet_transform_version to 0.3.1. Dashboard ES|QL uses COALESCE so 0.3.0 lookup documents remain compatible after in-place upgrade. Bump package format_version to 3.5.0 so kibana/alerting_rule_template assets match package-spec; drop validation.yml SVR00002 override."
55
type: enhancement
66
link: https://github.com/elastic/integrations/pull/18102
77
- version: 0.3.0

packages/chargeback/docs/README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ POST chargeback_conf_lookup/_update/config
5050
"conf_query_weight": 20,
5151
"conf_storage_weight": 40,
5252
"conf_start_date": "2024-01-01T00:00:00.000Z",
53-
"conf_end_date": "2024-12-31T23:59:59.999Z"
53+
"conf_end_date": "2024-12-31T23:tie"
5454
}
5555
}
5656
```
@@ -119,12 +119,6 @@ Chargeback data can be viewed in the `[Chargeback] Cost and Consumption breakdow
119119

120120
![Cost and Consumption breakdown](../img/chargeback.png)
121121

122-
### Upgrading from 0.3.0
123-
124-
From **0.3.1** onward, configuration and billing fields use chargeable-unit names (for example `conf_chargeable_unit_rate` and `total_chargeable_units` instead of `conf_ecu_rate` and `total_ecu`). The dashboard queries accept both the new and the previous field names, so you do not need to change existing documents in the lookup indices for panels to work. New data from the updated transforms uses the new names over time.
125-
126-
If you built your own ES|QL, dashboards, or automation against the lookup indices, update those to the new field names when convenient.
127-
128122
## Deployment Groups
129123

130124
The integration supports organizing deployments into logical groups using the `chargeback_group` tag on ESS Billing deployments. This enables cost allocation and filtering by teams, projects, or any organizational structure.
@@ -148,6 +142,8 @@ This integration includes 3 pre-configured alert rule templates that can be inst
148142
2. **New Chargeback Group Detected** - Notifies when a new `chargeback_group` tag is added to a deployment
149143
3. **Deployment with Chargeback Group Missing Usage Data** - Detects when a deployment has a chargeback group assigned but is not sending usage/consumption data
150144

145+
The templates ship as Kibana alerting rule assets with the package and need **Kibana 9.2.0 or newer**, the same minimum as the integration’s Kibana version condition (see **Requirements** below).
146+
151147
**Important:** For alert rules 2 and 3, ensure that the Chargeback transforms are running before setting them up. These alerting rules query the lookup indices created by the transforms (`billing_cluster_cost_lookup`, `cluster_deployment_contribution_lookup`, etc.). If the transforms are not started, the alerts will not function correctly.
152148

153149
### Alert actions

packages/chargeback/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
format_version: 3.4.0
1+
format_version: 3.5.0
22
name: chargeback
33
title: "Chargeback"
44
version: 0.3.1

packages/chargeback/validation.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)