Skip to content

Commit 54af863

Browse files
committed
Update to version 0.2.10 with automated config lookup and visualization fixes
- Removed manual setup_commands.json (no longer needed) - Updated Instructions.md: removed manual config setup step, added Configuration section at end - Updated README.md with version 0.2.10 release notes - Documented automated chargeback_conf_lookup creation via bootstrap transform - Simplified installation steps - configuration index now auto-created - Default config: ECU rate 0.85 EUR, weights 20/20/40, date range 2010-2046 Based on PR: elastic/integrations#16936
1 parent 52dea13 commit 54af863

3 files changed

Lines changed: 56 additions & 101 deletions

File tree

integration/Instructions.md

Lines changed: 39 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -14,77 +14,54 @@ To install the Chargeback integration, please follow these steps:
1414

1515
See [Requirements](README.md#requirements) for details.
1616

17-
### 2. Create Lookup Indices and Data View:
18-
- Copy the Index creation commands (below) to Kibana Dev Tools.
19-
- If required, modify the desired values for the `chargeback_conf_lookup` index. Note, these can be changed at a later stage.
20-
- Change the `conf_*_weight` values to set the blended weight calculations, or use defaults.
21-
- Change the `conf_ecu_rate` value so that the dashboard is in the desired rate, and `conf_ecu_rate_unit` to the unit representing the rate. For example a rate of `17.6` and unit of `ZAR` will show the cost in South African Rand, wherease a rate of `1` and unit of `USD` will show the cost in United States Dollar.
22-
- Create the required `mode: lookup` indices by executing all of the commands.
23-
- Create the required Kibana data view which is used in the Dashboard control.
17+
### 2. Upload ZIP File:
2418

25-
<details>
19+
- Asset: [`chargeback-0.2.10.zip`](assets/0.2.10/chargeback-0.2.10.zip)
20+
- Browse to Integrations, and click on `+ Create new integration`
2621

27-
```
28-
# Create the config lookup index for chargeback configuration.
29-
# This index will store configuration settings. Multiple documents can be added for different time periods.
22+
![alt text](assets/img/CreateNewIntegration.png)
3023

31-
PUT chargeback_conf_lookup
32-
{
33-
"settings": {
34-
"index.mode": "lookup"
35-
},
36-
"mappings": {
37-
"_meta": {
38-
"managed": true,
39-
"package": { "name": "chargeback", "version": "0.2.9" }
40-
},
41-
"properties": {
42-
"config_join_key": { "type": "keyword" },
43-
"conf_ecu_rate": { "type": "float" },
44-
"conf_ecu_rate_unit": { "type": "keyword"},
45-
"conf_indexing_weight": { "type": "integer" },
46-
"conf_query_weight": { "type": "integer" },
47-
"conf_storage_weight": { "type": "integer" },
48-
"conf_start_date": {"type": "date"},
49-
"conf_end_date": {"type": "date"}
50-
}
51-
}
52-
}
24+
- Upload the provided ZIP file by clicking on `upload it as a .zip`
5325

54-
# Add the default configuration to the chargeback_conf_lookup index with ID "config".
55-
# This creates a document that can be updated later using _update/config.
56-
POST chargeback_conf_lookup/_doc/config
57-
{
58-
"config_join_key": "chargeback_config",
59-
"conf_ecu_rate": 0.85,
60-
"conf_ecu_rate_unit": "EUR",
61-
"conf_indexing_weight": 20,
62-
"conf_query_weight": 20,
63-
"conf_storage_weight": 40,
64-
"conf_start_date": "2024-01-01T00:00:00.000Z",
65-
"conf_end_date": "2024-12-31T23:59:59.999Z"
66-
}
26+
![alt text](assets/img/UploadItAsAZip.png)
6727

68-
# Add additional configuration for a different time period (optional).
69-
# This creates a new document with an auto-generated ID for time-based rate changes.
70-
POST chargeback_conf_lookup/_doc
71-
{
72-
"config_join_key": "chargeback_config",
73-
"conf_ecu_rate": 0.95,
74-
"conf_ecu_rate_unit": "EUR",
75-
"conf_indexing_weight": 20,
76-
"conf_query_weight": 20,
77-
"conf_storage_weight": 40,
78-
"conf_start_date": "2025-01-01T00:00:00.000Z",
79-
"conf_end_date": "2025-12-31T23:59:59.999Z"
80-
}
81-
```
28+
### 3. Transforms Auto-Start
29+
30+
Starting from version 0.2.8, all Chargeback transforms are configured to auto-start upon installation. You no longer need to manually start the transforms.
31+
32+
**Starting from version 0.2.10**, the `chargeback_conf_lookup` index is automatically created via a bootstrap transform during installation. No manual setup is required! The transform creates the index with default configuration:
33+
- **ECU rate:** 0.85 EUR
34+
- **Weights:** indexing=20, query=20, storage=40
35+
- **Date range:** 2010-01-01 to 2046-12-31
36+
37+
You can modify these values after installation if needed (see Configuration section below).
38+
39+
**Performance Note:** On clusters with months of historical monitoring data for multiple deployments, the initial transform execution may process a large volume of data. This can cause temporary performance impact during the first run. The transforms will then run incrementally on their configured schedules (15-60 minute intervals), processing only new data with minimal overhead.
40+
41+
### 4. Configure Alerting Rules (Optional)
42+
43+
Version 0.2.8 includes three pre-configured alerting rule templates:
44+
- **Transform Health Monitoring** - Monitors transform health status
45+
- **New Chargeback Group Detection** - Alerts on new chargeback group tags
46+
- **Missing Usage Data** - Detects deployments with missing usage data
8247

83-
</details>
48+
These rules can be configured in **Stack Management → Rules** after installation.
49+
50+
**Important:** For the New Chargeback Group Detection and Missing Usage Data alert rules, ensure that the Chargeback transforms are running before setting them up. These alerting rules query the lookup indices created by the transforms. If the transforms are not started, the alerts will not function correctly.
51+
52+
## Upgrade integration
53+
54+
To upgrade the integration, do the following:
55+
- Upload the new asset (ZIP) file to Kibana.
56+
- Transforms will auto-start (from version 0.2.8 onwards).
57+
58+
**Upgrading from 0.2.9 to 0.2.10:**
59+
- No manual steps required for the `chargeback_conf_lookup` index - the bootstrap transform will automatically create it if it doesn't exist.
60+
- If you previously manually created the `chargeback_conf_lookup` index, it will continue to work with the new version.
8461

8562
## Configuration
8663

87-
Configuration values are stored in the `chargeback_conf_lookup` index. The dashboard automatically applies the correct configuration based on the billing date falling within the `conf_start_date` and `conf_end_date` range.
64+
Configuration values are stored in the `chargeback_conf_lookup` index, which is automatically created by version 0.2.10. The dashboard automatically applies the correct configuration based on the billing date falling within the `conf_start_date` and `conf_end_date` range.
8865

8966
### Update the default configuration:
9067

@@ -122,39 +99,3 @@ POST chargeback_conf_lookup/_doc
12299
"conf_end_date": "2025-12-31T23:59:59.999Z"
123100
}
124101
```
125-
126-
127-
### 3. Upload ZIP File:
128-
129-
- Asset: [`chargeback-0.2.9.zip`](assets/0.2.9/chargeback-0.2.9.zip)
130-
- Browse to Integrations, and click on `+ Create new integration`
131-
132-
![alt text](assets/img/CreateNewIntegration.png)
133-
134-
- Upload the provided ZIP file by clicking on `upload it as a .zip`
135-
136-
![alt text](assets/img/UploadItAsAZip.png)
137-
138-
### 4. Transforms Auto-Start
139-
140-
Starting from version 0.2.8, all Chargeback transforms are configured to auto-start upon installation. You no longer need to manually start the transforms.
141-
142-
**Performance Note:** On clusters with months of historical monitoring data for multiple deployments, the initial transform execution may process a large volume of data. This can cause temporary performance impact during the first run. The transforms will then run incrementally on their configured schedules (15-60 minute intervals), processing only new data with minimal overhead.
143-
144-
### 5. Configure Alerting Rules (Optional)
145-
146-
Version 0.2.8 includes three pre-configured alerting rule templates:
147-
- **Transform Health Monitoring** - Monitors transform health status
148-
- **New Chargeback Group Detection** - Alerts on new chargeback group tags
149-
- **Missing Usage Data** - Detects deployments with missing usage data
150-
151-
These rules can be configured in **Stack Management → Rules** after installation.
152-
153-
**Important:** For the New Chargeback Group Detection and Missing Usage Data alert rules, ensure that the Chargeback transforms are running before setting them up. These alerting rules query the lookup indices created by the transforms. If the transforms are not started, the alerts will not function correctly.
154-
155-
## Upgrade integration
156-
157-
To upgrade the integration, do the following:
158-
- Depending on the change in version, you might need to delete the `*_lookup` indices, and create them again.
159-
- Upload the new asset (ZIP) file to Kibana.
160-
- For versions prior to 0.2.8, start the transforms manually. From 0.2.8 onwards, transforms auto-start.

integration/README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Version
44

5-
Chargeback integration: 0.2.9
5+
Chargeback integration: 0.2.10
66

77
## Dependencies
88

@@ -47,7 +47,7 @@ The first layer of processing that we do, is five transforms:
4747

4848
![Transforms](assets/img/Transforms.png)
4949

50-
All of the transforms create their own lookup index. There is also a lookup index for the configuration. Starting from version 0.2.8, all transforms are configured to auto-start upon installation.
50+
All of the transforms create their own lookup index. There is also a lookup index for the configuration. Starting from version 0.2.8, all transforms are configured to auto-start upon installation. **Version 0.2.10 introduces automated creation of the `chargeback_conf_lookup` index via a bootstrap transform**, eliminating the need for manual index creation.
5151

5252
**Performance Note:** On clusters with months of historical monitoring data for multiple deployments, the initial transform execution may process a large volume of data. This can cause temporary performance impact during the first run. The transforms will then run incrementally on their configured schedules (15-60 minute intervals), processing only new data with minimal overhead.
5353

@@ -81,4 +81,18 @@ Version 0.2.8 includes three pre-configured Kibana alerting rule templates to he
8181

8282
These alerting templates are automatically installed with the integration and can be configured through **Stack Management → Rules** in Kibana.
8383

84-
**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.
84+
**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.
85+
86+
## Version 0.2.10 Release Notes
87+
88+
### Bug Fixes
89+
- **Visualization Display Issues:** Fixed visualizations not loading correctly due to integer division returning zero in ES|QL queries. All calculations now use TO_DOUBLE type conversion to prevent this issue.
90+
91+
### Enhancements
92+
- **Automated Configuration Index:** The `chargeback_conf_lookup` index is now automatically created via a bootstrap transform during installation. This eliminates the need for manual index creation steps.
93+
- Default ECU rate: 0.85 EUR
94+
- Default weights: indexing=20, query=20, storage=40
95+
- Default date range: 2010-01-01 to 2046-12-31
96+
97+
### Maintenance
98+
- Bumped all transform pipeline versions to 0.2.10
1.26 MB
Binary file not shown.

0 commit comments

Comments
 (0)