Repository navigation
[chargeback] feature parity with chargeback_serverless and agentless - #22730
JohannesMahne wants to merge 17 commits into
Conversation
✅ Elastic Docs Style Checker (Vale)No issues found on modified lines! The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale. |
This comment has been minimized.
This comment has been minimized.
5f005c8 to
54c4f1c
Compare
… agentless support
54c4f1c to
da66a8e
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved upgrade-mapping, attribution, daily aggregation, and alert-selection defects can leave new fields unsearchable, produce incorrect chargeback results, and cause alerts to fail or miss deployments.
5 open issues
Upgrade existing destination mappings for newly added fields · New Track name and group observation timestamps independently · New Propagate explicitly cleared chargeback groups through rollups · New Calculate daily location cardinality from location identifiers · New Compute latest billing timestamps per deployment · New
What changed in this PR
Extends Chargeback’s cost-allocation integration toward feature parity with Chargeback Serverless, adding Agentless deployment support and broader workload reporting.
Changes:
- Enables Agentless mode by default in beta and hardens collection configuration and response handling.
- Adds AI/ML and Synthetics rollups, expands billing metadata and currency settings, and introduces 365-day transform retention.
- Adds four spending and data-health alert templates, updates existing alerts, and refreshes documentation and test fixtures.
| File | Description |
|---|---|
packages/chargeback/manifest.yml |
Bumps version and enables default beta Agentless mode. |
packages/chargeback/LICENSE.txt |
Adds Elastic License 2.0 text. |
packages/chargeback/kibana/alerting_rule_template/chargeback-transform-health.json |
Includes AI/ML and Synthetics transforms in health monitoring. |
packages/chargeback/kibana/alerting_rule_template/chargeback-new-group-detected.json |
Detects recently introduced groups using historical billing. |
packages/chargeback/kibana/alerting_rule_template/chargeback-deployment-missing-usage-data.json |
Preserves billing metadata across the usage lookup join. |
packages/chargeback/kibana/alerting_rule_template/chargeback-alert-total-monthly-spend.json |
Adds rolling-budget and projected-spend alerts. |
packages/chargeback/kibana/alerting_rule_template/chargeback-alert-deployment-spend.json |
Adds per-deployment daily-spend threshold alerts. |
packages/chargeback/kibana/alerting_rule_template/chargeback-alert-deployment-spend-spike.json |
Adds spend-spike detection against historical baselines. |
packages/chargeback/kibana/alerting_rule_template/chargeback-alert-data-trust-health.json |
Adds billing freshness and allocation-health alerts. |
packages/chargeback/elasticsearch/transform/cluster_tier_contribution/transform.yml |
Expands exclusions and adds retention and templated pipelines. |
packages/chargeback/elasticsearch/transform/cluster_tier_contribution/fields/fields.yml |
Clarifies tier documentation. |
packages/chargeback/elasticsearch/transform/cluster_tier_and_ds_contribution/transform.yml |
Updates exclusions, retention, and destination pipeline references. |
packages/chargeback/elasticsearch/transform/cluster_tier_and_ds_contribution/fields/fields.yml |
Clarifies tier and namespace descriptions. |
packages/chargeback/elasticsearch/transform/cluster_synthetics_contrib/transform.yml |
Adds daily Synthetics monitor rollups. |
packages/chargeback/elasticsearch/transform/cluster_synthetics_contrib/manifest.yml |
Configures the Synthetics lookup destination. |
packages/chargeback/elasticsearch/transform/cluster_synthetics_contrib/fields/fields.yml |
Defines Synthetics rollup fields. |
packages/chargeback/elasticsearch/transform/cluster_deployment_contribution/transform.yml |
Preserves deployment metadata and updates retention and exclusions. |
packages/chargeback/elasticsearch/transform/cluster_deployment_contribution/fields/fields.yml |
Adds deployment name and group mappings. |
packages/chargeback/elasticsearch/transform/cluster_datastream_contribution/transform.yml |
Preserves deployment metadata in data-stream rollups. |
packages/chargeback/elasticsearch/transform/cluster_datastream_contribution/fields/fields.yml |
Adds deployment metadata and clarifies namespace documentation. |
packages/chargeback/elasticsearch/transform/cluster_capacity_utilization/transform.yml |
Adds retention and a templated pipeline reference. |
packages/chargeback/elasticsearch/transform/cluster_ai_contrib/transform.yml |
Adds daily model and inference-activity rollups. |
packages/chargeback/elasticsearch/transform/cluster_ai_contrib/manifest.yml |
Configures the AI/ML lookup destination. |
packages/chargeback/elasticsearch/transform/cluster_ai_contrib/fields/fields.yml |
Defines AI/ML rollup fields. |
packages/chargeback/elasticsearch/transform/chargeback_conf_lookup/transform.yml |
Preserves currency symbols and updates pipeline references. |
packages/chargeback/elasticsearch/transform/chargeback_conf_lookup/fields/base-fields.yml |
Adds the currency-symbol mapping. |
packages/chargeback/elasticsearch/transform/billing_realized_pool/transform.yml |
Separates AI/Synthetics pools and expands billing classification. |
packages/chargeback/elasticsearch/transform/billing_realized_pool/fields/fields.yml |
Adds AI and Synthetics chargeable-unit fields. |
packages/chargeback/elasticsearch/transform/billing_credits/transform.yml |
Updates exclusions, retention, and pipeline references. |
packages/chargeback/elasticsearch/transform/billing_cluster_cost/transform.yml |
Handles unassociated deployments and preserves billing units. |
packages/chargeback/elasticsearch/transform/billing_cluster_cost/fields/fields.yml |
Adds billing units and expands field descriptions. |
packages/chargeback/docs/README.md |
Documents Agentless mode, workloads, alerts, and upgrade behavior. |
packages/chargeback/data_stream/usage/fields/fields.yml |
Adds deployment-group, AI/ML, and Synthetics fields. |
packages/chargeback/data_stream/usage/elasticsearch/ingest_pipeline/default.yml |
Supports auxiliary workloads and removes Agentless metadata. |
packages/chargeback/data_stream/usage/_dev/test/system/test-default-config.yml |
Updates expected counts for auxiliary workload events. |
packages/chargeback/data_stream/usage/_dev/test/pipeline/test-usage.json-expected.json |
Refreshes expected ingestion timestamps. |
packages/chargeback/data_stream/node_stats/manifest.yml |
Exposes the node-stat collection interval. |
packages/chargeback/data_stream/node_stats/elasticsearch/ingest_pipeline/default.yml |
Removes conflicting Agentless metadata fields. |
packages/chargeback/data_stream/node_stats/agent/stream/cel.yml.hbs |
Adds version guards, credential trimming, and response validation. |
packages/chargeback/data_stream/node_stats/_dev/test/policy/test-default.expected |
Updates default policy expectations for collector changes. |
packages/chargeback/data_stream/node_stats/_dev/test/policy/test-custom.expected |
Updates custom policy expectations for collector changes. |
packages/chargeback/data_stream/node_stats/_dev/test/pipeline/test-node-stats.json-expected.json |
Refreshes expected ingestion timestamps. |
packages/chargeback/data_stream/lookup/fields/fields.yml |
Expands shared billing and workload mappings. |
packages/chargeback/data_stream/lookup/elasticsearch/ingest_pipeline/usage.yml |
Normalizes auxiliary rollups, metadata, and data-stream names. |
packages/chargeback/data_stream/lookup/elasticsearch/ingest_pipeline/realized_pool.yml |
Emits separate AI/Synthetics totals and fallback deployment names. |
packages/chargeback/data_stream/lookup/elasticsearch/ingest_pipeline/chargeback_conf.yml |
Normalizes currency codes and derives display symbols. |
packages/chargeback/data_stream/lookup/elasticsearch/ingest_pipeline/billing.yml |
Expands billing normalization and cost classification. |
packages/chargeback/data_stream/lookup/_dev/test/pipeline/test-usage-lookup.json-expected.json |
Adds expected AI/ML and Synthetics lookup outputs. |
packages/chargeback/data_stream/lookup/_dev/test/pipeline/test-usage-lookup.json |
Adds auxiliary workload and metadata fixtures. |
packages/chargeback/data_stream/lookup/_dev/test/pipeline/test-realized-pool.json-expected.json |
Adds expected separate workload-pool totals. |
packages/chargeback/data_stream/lookup/_dev/test/pipeline/test-realized-pool.json |
Adds mixed data-tier, AI, and Synthetics fixtures. |
packages/chargeback/data_stream/lookup/_dev/test/pipeline/test-credits.json-expected.json |
Refreshes expected ingestion timestamps. |
packages/chargeback/data_stream/lookup/_dev/test/pipeline/test-chargeback-conf.json-expected.json |
Adds expected derived currency symbols. |
packages/chargeback/data_stream/lookup/_dev/test/pipeline/test-capacity-utilization.json-expected.json |
Refreshes expected ingestion timestamps. |
packages/chargeback/data_stream/lookup/_dev/test/pipeline/test-billing-lookup.json-expected.json |
Updates expected billing-kind normalization and timestamps. |
packages/chargeback/data_stream/billing/manifest.yml |
Adds currency-symbol and collection-interval settings. |
packages/chargeback/data_stream/billing/fields/fields.yml |
Adds billing-unit and currency-symbol fields. |
packages/chargeback/data_stream/billing/elasticsearch/ingest_pipeline/default.yml |
Updates Agentless cleanup, fingerprints, and billing normalization. |
packages/chargeback/data_stream/billing/_dev/test/system/test-default-config.yml |
Includes idle discovered projects in expected event counts. |
packages/chargeback/data_stream/billing/_dev/test/pipeline/test-billing.json-expected.json |
Refreshes expected ingestion timestamps. |
packages/chargeback/changelog.yml |
Records the 0.7.0 enhancements. |
packages/chargeback/_dev/deploy/docker/files/stream-config.yml |
Adds mock billing, discovery, AI/ML, and Synthetics responses. |
packages/chargeback/_dev/build/docs/README.md |
Updates documentation source for the new capabilities. |
Review effort: Balanced
| - name: conf_currency_symbol | ||
| type: keyword |
There was a problem hiding this comment.
Fixed in 71d1369ce1.
- Bumped
dest.indexfrom-1to-2across all five existing transforms with new0.7.0mappings (chargeback_conf_lookup,billing_cluster_cost,billing_realized_pool,cluster_deployment_contribution, andcluster_datastream_contribution) while keepingmove_on_creation: trueon theirchargeback_lookup.*aliases so Fleet creates freshdynamic: falselookup indices with the updated field mappings on upgrade. - Extended
chargeback_conf_lookupanddata_stream/lookup/elasticsearch/ingest_pipeline/chargeback_conf.yml(cb_conf_bucket_keyruntime mapping +dest_chargeback_conf-1*wildcard source) so_id: config,_id: config_onprem, and any custom/historical period documents (_idpreserved via_manual_doc_idandconfig_join_keyrestored) are carried over automatically fromchargeback_lookup.dest_chargeback_conf-1into-2whensync_fleet_configis disabled or on assets-only / multi-period setups.
There was a problem hiding this comment.
Updated in d84dfdd: completed the _id fielddata removal and disabled-sync overwrite guard for chargeback_conf_lookup carryover into dest_chargeback_conf-2 (details on the two new threads).
There was a problem hiding this comment.
Updated in bcb2e87: completed the disabled-sync 0.6.0 upgrade guard (conf_schema_version: 1 vs v2|) and historical On-Premises rate-row preservation in chargeback_conf_lookup/transform.yml.
There was a problem hiding this comment.
Updated in bcd30cb138: added the chargeback_conf_init destination-initialisation tracker (chargeback_lookup.dest_chargeback_conf_init-1) so -1 and legacy chargeback_conf_lookup carryover into chargeback_lookup.dest_chargeback_conf-2 always runs before disabled snapshots suppress overwrites.
There was a problem hiding this comment.
Addressed completely across 71d1369ce1–7fde88da91 within Fleet and Elasticsearch's declarative transform lifecycle:
- Fresh
dynamic: falsemappings on upgrade: All five modified0.6.0transforms (chargeback_conf_lookup,billing_cluster_cost,billing_realized_pool,cluster_deployment_contribution, andcluster_datastream_contribution) advancedest.indexfrom-1to-2(_meta.fleet_transform_version: 0.7.0), so Kibana Fleet creates new-2templates/indices with the added0.7.0fields (conf_row_id,conf_currency_symbol,group_first_seen,ai_chargeable_units,synthetics_*,deployment_name,deployment_group) without deleting existing-1indices. - Single-index
chargeback_lookup.*aliases (move_on_creation: true): Kibana Fleet's transform installer (x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/install.ts) does not updatedynamic: falsedestination mappings in place or run post-checkpoint alias switches, and ES|QLLOOKUP JOINrejects multi-index aliases (Lookup Join requires a single lookup mode index). Usingmove_on_creation: trueensures Elasticsearch (TransformIndex.setUpDestinationAliases) moves each alias atomically to-2on destination creation whilebilling_*andcluster_*transforms re-aggregate retained history automatically. - Zero-loss
chargeback_conf_lookupcarryover before suppressing disabled snapshots:chargeback_conf_lookupsourceschargeback_lookup.dest_chargeback_conf-1*and legacychargeback_conf_lookup*, preserves_id: config,_id: config_onprem, and custom/historical period documents (conf_row_id), and delegates destination-initialisation tracking tochargeback_conf_init(chargeback_lookup.dest_chargeback_conf_init-1). Until-2receives its first document perconfig_join_keybucket, carryover runs even whensync_fleet_config: false; oncechargeback_conf_initrecords initialisation, disabled snapshots drop writes so manual edits in-2are never overwritten. - Upgrade documentation (
_dev/build/docs/README.md/docs/README.md): Documented the twelve transforms (includingchargeback_conf_init) and-1->-2alias behaviour underUpgrading to 0.7.0.
There was a problem hiding this comment.
Updated in d94f800335 to add full -1 historical carryover across all four remaining upgraded -2 lookup transforms as well as immediate Checkpoint 1 visibility in chargeback_conf_lookup:
billing_cluster_cost&billing_realized_pool: Now includechargeback_lookup.dest_*-1*insource.indexandsource.query, exposecb_sync_ts = 1262304000000Lfor-1rows so they are visible on Checkpoint 1, guardnativeandlegacyscripted metrics against-1documents, and add acarryover_v1scripted_metricfallback consumed inbilling.ymlandrealized_pool.ymlstrictly when rawnative/legacysource counts are zero (raw billing streams always win wherever retained).cluster_deployment_contribution&cluster_datastream_contribution: Now includechargeback_lookup.dest_*-1*insource.indexand carry over historical-1rollup metrics whennatCnt == 0 && legCnt == 0for a daily bucket (rawmetrics-chargeback.usage-*/monitoring-indices*sources always win wherever retained).chargeback_conf_lookup: Updatedcb_sync_tsto emit1262304000000Lforchargeback_lookup.dest_chargeback_conf-1andchargeback_conf_lookuprows (computinglSyncfromevent.ingested/@timestamp), so recent manual or0.6.0config edits within the 60s sync delay are carried over on Checkpoint 1; added distinct_meta.order(0..11) across all twelve transforms so Fleet installs them sequentially (chargeback_conf_lookup->chargeback_conf_init-> downstream transforms)._dev/build/docs/README.md/docs/README.md: Documented automatic Checkpoint 1-1->-2carryover and raw-stream precedence underUpgrading to 0.7.0.
There was a problem hiding this comment.
Updated packages/chargeback/elasticsearch/transform/chargeback_conf_lookup/fields/base-fields.yml alongside the -1 -> -2 destination upgrade implementation in 665c8a6cc8 (following d94f800335):
- Why versioned destinations with
move_on_creation: trueare used instead of in-placeputMapping: Fleet's transform installer (x-pack/platform/plugins/shared/fleet/server/services/epm/elasticsearch/transform/install.ts) retains existing destinations on package upgrade and never altersdynamic: falsetransform mappings in place, while ES|QLLOOKUP JOINrejects multi-index aliases. Bumpingdest.indexfrom-1to-2across all five affected transforms (chargeback_conf_lookup,billing_cluster_cost,billing_realized_pool,cluster_deployment_contribution,cluster_datastream_contribution) causes Fleet to create fresh-2indices containing the new0.7.0fields (conf_currency_symbol,conf_row_id,group_first_seen,ai_chargeable_units,synthetics_*,deployment_name,deployment_group) and atomically movechargeback_lookup.*on destination creation. - Zero-loss Checkpoint 1 carryover across all five
-2transforms:chargeback_conf_lookup+chargeback_conf_initcarry over_id: config,_id: config_onprem, and custom/historical rows fromchargeback_lookup.dest_chargeback_conf-1andchargeback_conf_lookupon Checkpoint 1 (emittingcb_sync_ts = 1262304000000Lso recently written-1rows within the 60s delay are included) before disabled Fleet snapshots suppress overwrites.billing_cluster_cost,billing_realized_pool,cluster_deployment_contribution, andcluster_datastream_contributioncarry over aged-out historical buckets fromchargeback_lookup.dest_*-1viacarryover_v1/-1fallback whenever raw backing streams have aged out, while raw streams always take precedence wherever retained.
- Documented the
dynamic: false/-1->-2requirement inbase-fields.ymland verified all five migration paths end-to-end against live Elasticsearch 9.2.0.
There was a problem hiding this comment.
Updated in 4f7003b0a6 to resolve both the 0.6.0 -> 0.7.0 schema/destination migration and the upgrade-replay billing deduplication interaction flagged in the overview:
- Upgrade-safe
dedupKey&organization_idnormalisation (billing_cluster_cost&billing_realized_pool): Removed derivedbType(ess.billing.type) andbKind(ess.billing.kind) fromdedupKeyin bothnativeandlegacyscripted_metricaggregations (keeping both fields onrecso0.7.0enriches the winning document) and trimmedorgId,depId, andsku. Because0.7.0billingingest populateskindon Serverless SKUs and refinestypenormalisation alongside updated_idfingerprints,0.6.0and0.7.07-day replay documents now collapse onto the samededupKeyinstead of double-counting historical Elasticsearch costs. - Unassociated bucket normalisation (
billing_cluster_cost,billing_realized_pool,lookup/billing.yml): Mapped legacy0.6.0deployment_id: "unassociated"documents (both raw and-1carryover inbilling_cluster_cost) intounassociated_<type>viacb_deployment_id, excluded untypeddest_billing_realized_pool-1"unassociated"rows fromcarryover_v1, and readcb_deployment_idfirst when buildingdedupKey. - Deleted-resource replay guards & CEL balance repair (
data_stream/billing/agent/stream/cel.yml.hbs): Persistedpre_v07_high_water(to gate/costs/itemsresidual attribution andprev_day_keystombstones on pre-0.7.0cursor days lackingrecent_day_keys), persistedech_id_mapfor deleted wrapper-ID ECH deployments across the 7-day window, widened ServerlesselasticsearchSKU/residual matching, and removed 2 stray trailing)left byd84dfdd57b(depth=0). - Verification: Regenerated
billingpolicy expectations, passedelastic-package format,build,test policy,test pipeline, andcheck, and verified allR3–R8scenarios end-to-end on live Elasticsearch9.2.0(R8-1..R8-3cover Serverless ES /Ingest/integrations_serverreplay dedup,unassociated->unassociated_elasticsearch-1+ raw consolidation, and0.0ECU retractions).
There was a problem hiding this comment.
Addressed in 600b48d by shifting from an asynchronous -2 index migration to a zero-mutation additive-lookup architecture:
- Restored all nine existing
0.6.0transforms to their0.6.0destination indices (chargeback_lookup.dest_*-1andcluster_capacity_utilization_lookup) and exact0.6.0field schemas (dynamic: falseuntouched), removingchargeback_conf_initandcarryover_v1completely. Existing0.6.0manual/historical rate windows and aged-out billing rows remain preserved in place across0.6.0 -> 0.7.0upgrades. - Isolated all newly introduced
0.7.0lookup fields into three dedicatedindex.mode: lookupsidecar transforms (alongsidebilling_credits,cluster_ai_contrib, andcluster_synthetics_contrib):chargeback_lookup.chargeback_currency(chargeback_currency_lookup):conf_currency_symbol,conf_currency_unitchargeback_lookup.billing_enrichment(billing_enrichment):ai_chargeable_units,synthetics_chargeable_units,synthetics_executions_units,synthetics_pings_units,group_first_seenchargeback_lookup.usage_deployment_metadata(usage_deployment_metadata):deployment_nameanddeployment_groupoverrides
- Updated all dashboards and alerting rules to
LOOKUP JOINthese additive indices with unit-mismatch guards and safe fallback behaviour when sidecars are unpopulated, added all 14 transforms tochargeback-transform-health, and added an end-to-end0.6.0 -> 0.7.0script test (upgrade_060_to_070.txt) verifying in-place preservation and alert evaluation.
…ollup, synthetics cardinality, and spend alerts
|
Addressed all five Copilot review items from
Verification
|
There was a problem hiding this comment.
🟡 Changes recommended
Critical configuration migration issues can cause failures on default Elasticsearch clusters and overwrite newer settings with stale values when synchronization is disabled.
5 open issues
Avoid requiring _id fielddata during configuration migration · New Prevent disabled sync from overwriting migrated settings · New Deduplicate overlapping usage from multiple Chargeback policies · New Prevent billing replay from backdating new-group first_seen · New Upgrade existing destination mappings for newly added fields
4 resolved since last review
Review effort: Balanced
…olicy AI/Synthetics dedup, and new-group replay
|
Addressed all Round 2 Copilot review comments in d84dfdd:
Verification run locally after edits:
|
There was a problem hiding this comment.
🟡 Changes recommended
An unresolved upgrade guard can suppress initial configuration carryover, leaving saved rates and weights in the old index after the alias moves.
6 open issues
Ensure initial carryover runs before suppressing disabled snapshots · New Recompute composite key after normalizing downsampled data stream · New Preserve historical On-Premises rate rows during migration · New Include collector identity when grouping Elastic Agent emitters · New Prevent billing replay from backdating new-group first_seen Upgrade existing destination mappings for newly added fields
3 resolved since last review
Review effort: Balanced
TL;DRBuildkite step Remediation
Investigation detailsRoot CauseCurrent evidence is insufficient to isolate a code root cause. The only available failure log for this run contains teardown and exit-status lines, not the triggering error/test output. Evidence
Verification
Follow-upIf you share either:
What is this? | From workflow: Observability Agentic Workflow — Status Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
…sampled keys, agent emitter identity, and group replay
|
Addressed all Round 3 Copilot review comments in bcb2e87:
Verification run locally after edits:
|
There was a problem hiding this comment.
🟡 Changes recommended
Selecting a single collector for the entire day discards valid non-overlapping usage from replacement collectors, causing daily inference totals to be undercounted.
3 open issues
4 resolved since last review
Review effort: Balanced
…als and track conf -2 init before suppressing disabled snapshots
|
Addressed the remaining Copilot review feedback in
Verification run after final edits (
|
There was a problem hiding this comment.
🟡 Changes recommended
The rules aggregate incompatible currencies, producing incorrect budget and projection checks, and misclassify successfully collected zero-byte usage as a missing harvest.
3 open issues
2 resolved since last review
Review effort: Balanced
There was a problem hiding this comment.
🟡 Changes recommended
Critical issues remain: changed grouping keys can double-count historical billing during upgrades, and legacy routing reads _id, which can halt the transform when ID field data is disabled.
6 open issues
Changed grouping keys leave old buckets and double-count billing · New Legacy routing reads _id and can fail when ID field data is disabled · New Restore native snapshot chargeback regression cases Preserve config_join_key in legacy configuration projection Preserve group_first_seen through billing enrichment Upgrade existing destination mappings for newly added fields
Review effort: Balanced
…d fielddata reads
|
Addressed both High-severity findings from review
Verified locally on Elastic Stack |
There was a problem hiding this comment.
🔵 Needs a closer look
Human assessment is needed because current tests do not verify that index-less auxiliary events survive ingestion or that fingerprinting prevents distinct models, monitors, and collector IDs from overwriting one another.
3 open issues
3 resolved since last review
Review effort: Balanced
…ux event fingerprinting
|
Addressed the Buildkite
Verified locally on Elastic Stack
|
There was a problem hiding this comment.
🟡 Changes recommended
Collector-specific fingerprints allow duplicate index_usage observations from different agents to persist across shards, doubling usage and distorting cost allocation because the rollups lack cross-shard interval deduplication.
4 open issues
Review effort: Balanced
|
Addressed
Re-verified locally on Elastic Stack |
There was a problem hiding this comment.
🟡 Changes recommended
Including conf_policy_id in the fingerprint prevents deduplication of identical index-usage observations across policies, potentially inflating usage and cost allocation when copies land on different shards.
4 open issues
1 resolved since last review
Review effort: Balanced
|
Addressed
Verified locally on Elastic Stack |
|
✅ All changelog entries have the correct PR link. |
There was a problem hiding this comment.
🔵 Needs a closer look
Human assessment is needed because an omitted finding shows that inconsistent legacy On-Premises join-key normalization can replace a saved rate with a fallback.
3 open issues
1 resolved since last review
Review effort: Balanced
🚀 Benchmarks reportTo see the full report comment with |
💚 Build Succeeded
History
|


Proposed commit message
Upgrade the
chargebackintegration to0.7.0with Agentless deployment mode (beta, default), AI & ML and Synthetics FinOps parity withchargeback_serverless, additive in-place0.6.0->0.7.0upgrade safety,currency_symbolparity, 365-day transform retention policies, and four new FinOps ES|QL alerting rule templates.What & Why
Organizations running Chargeback on Elastic Cloud Hosted (ECH) or self-managed monitoring clusters need full FinOps parity with
chargeback_serverless(AI/ML and Synthetics cost attribution, budget/spike/data-trust alerting, and currency symbol formatting) as well as zero-infrastructure Agentless execution for ECH estates—without breaking existing0.6.0lookup destinations or manual configuration overrides on upgrade:Agentless deployment mode (default, beta):
deployment_modes.agentless(enabled: true,is_default: true,release: beta) while preserving traditional Fleet-managed Elastic Agent (>= 9.2.0) policies for self-managed / On-Premises, private-network, or assets-only deployments.proxy_url,ssl,enable_request_tracer) in Agentless mode and enforces the runtime Elastic Agent>= 9.2.0guard on Kibana 9.2/9.3.AI & Machine Learning FinOps and Synthetics FinOps parity:
chargeback.usage(cel.yml.hbs+ ingest pipeline) to optionally harvest_ml/trained_models/_stats,_inference, andsynthetics-*telemetry with non-overlapping interval merging and collector-agnostic fingerprinting.cluster_ai_contrib(chargeback_lookup.cluster_ai_model_contribution) andcluster_synthetics_contrib(chargeback_lookup.cluster_synthetics_monitor_contribution) continuous transforms.[Chargeback] AI & Machine Learningand[Chargeback] Synthetics) wired into the shared navigation bar across all five dashboards.In-place
0.6.0->0.7.0upgrade compatibility,currency_symbolparity & retention:currency_symbolconfiguration parity (default€matchingEUR) viachargeback_currency_lookup(chargeback_lookup.chargeback_currency).0.7.0billing and usage metadata fields in additive lookup transforms (billing_enrichmentandusage_deployment_metadata) so existing0.6.0dest_*-1destinations, transform grouping keys, and manualchargeback_confrows remain intact in place on upgrade.retention_policyto all time-series transforms.FinOps & operational ES|QL alerting rule templates:
[Chargeback] Rolling 30-day total spend budget exceeded(chargeback-alert-total-monthly-spend)[Chargeback] Deployment daily spend threshold exceeded(chargeback-alert-deployment-spend)[Chargeback] Deployment daily spend spike vs. 7-day baseline(chargeback-alert-deployment-spend-spike)[Chargeback] Data trust & harvest health issue(chargeback-alert-data-trust-health)chargeback-deployment-missing-usage-data,chargeback-new-group-detected,chargeback-transform-health).Checklist
changelog.ymlfile.Author's Checklist
packages/chargebackto0.7.0inmanifest.ymlwith matchingchangelog.ymlentries andLICENSE.txt.0.6.0->0.7.0upgrade safety (billing_enrichment,usage_deployment_metadata,chargeback_currency_lookup, andupgrade_060_to_070.txtscript test).docs/README.mdand_dev/build/docs/README.mdfor Agentless beta, AI/ML and Synthetics FinOps, alerts, and0.7.0upgrade guidance.0.4.xproof screenshots fromimg/.How to test this PR locally
packages/chargeback:build/packages/chargeback-0.7.0.zipand install or upgrade from0.6.0on an Elastic Cloud Hosted (ECH) or self-managed monitoring cluster running Elasticsearch/Kibana 9.2.0+.>= 9.2.0) policy, configure an Elastic Cloud Organization ID and API key (and/or Hub ES credentials), and verify:0.6.0dest_*-1lookup destinations and manualchargeback_confentries remain intact on upgrade.cluster_ai_contrib,cluster_synthetics_contrib,chargeback_currency_lookup,billing_enrichment, andusage_deployment_metadata) start cleanly.[Chargeback]dashboards (includingAI & Machine LearningandSynthetics) and all seven ES|QL alerting rule templates render and evaluate as expected.Related issues
chargeback_serverless0.2.0parity and Agentless PR)chargeback0.6.0initial PR)Screenshots
Updated and existing dashboard screenshots are packaged under
packages/chargeback/img/.