Skip to content

Commit 1a4254e

Browse files
author
JohannesMahne
committed
Update chargeback package: change Kibana version to ^9.2.0 format and update README
1 parent e5ef8f7 commit 1a4254e

File tree

4 files changed

+35
-1
lines changed

4 files changed

+35
-1
lines changed

packages/chargeback/docs/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,38 @@ This default weighting means storage contributes most to the blended cost calcul
3030

3131
Chargeback is also present based on a configured rate and unit. These are used to display cost in the local currency, for instance `EUR`, with a rate of `0.85`.
3232

33+
All configuration values can be updated, as follows:
34+
35+
```
36+
POST chargeback_conf_lookup/_update/config
37+
{
38+
"doc": {
39+
"conf_ecu_rate": 0.85,
40+
"conf_ecu_rate_unit": "EUR",
41+
"conf_indexing_weight": 20,
42+
"conf_query_weight": 20,
43+
"conf_storage_weight": 40,
44+
"conf_start_date": "2024-01-01T12:00:00.000Z",
45+
"conf_end_date": "2030-12-31T23:59:59.000Z"
46+
}
47+
}
48+
```
49+
50+
You can add additional configuration documents with different start and end dates to support multiple rate periods:
51+
52+
```
53+
POST chargeback_conf_lookup/_doc/config_2025
54+
{
55+
"conf_ecu_rate": 0.90,
56+
"conf_ecu_rate_unit": "EUR",
57+
"conf_indexing_weight": 20,
58+
"conf_query_weight": 20,
59+
"conf_storage_weight": 40,
60+
"conf_start_date": "2025-01-01T00:00:00.000Z",
61+
"conf_end_date": "2025-12-31T23:59:59.000Z"
62+
}
63+
```
64+
3365
Chargeback data can be viewed in the `[Chargeback] Cost and Consumption breakdown` dashboard.
3466

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

packages/chargeback/elasticsearch/ingest_pipeline/billing.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
description: 'Chargeback: Set composite_key from @timestamp and deployment_id.'
23
processors:
34
- script:

packages/chargeback/elasticsearch/ingest_pipeline/usage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
description: 'Chargeback: Set correlation keys and blended calculation weights.'
23
processors:
34
- script:

packages/chargeback/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ categories:
99
- custom
1010
conditions:
1111
kibana:
12-
version: "9.2.0"
12+
version: "^9.2.0"
1313
elastic:
1414
subscription: "basic"
1515
screenshots:

0 commit comments

Comments
 (0)