elasticsearch_exporter/fixtures
Joe Adams 325e7dd61f
Fix mixed value types for disk watermark (#1055)
* Fix mixed value types for disk watermark

The disk watermark values can be a ratio or percentage according to the docs[1], however when set to a percentage, the defaults become an object and therefore fails to parse. In that case, we really only care about what the user set. Adds a test to confirm a fix for #1044.

Fixes #1044

[1] https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/cluster-level-shard-allocation-routing-settings#disk-based-shard-allocation

Signed-off-by: Joe Adams <github@joeadams.io>

* Add missing test fixture

Signed-off-by: Joe Adams <github@joeadams.io>

---------

Signed-off-by: Joe Adams <github@joeadams.io>
2025-10-27 21:12:26 -04:00
..
clusterhealth Refactor tests for cluster health 2023-11-14 21:29:18 -05:00
clusterinfo Add tests for clusterinfo collector (#792) 2023-10-16 08:39:00 -04:00
datastream Update tests for datastream collector (#791) 2023-10-15 16:18:52 -04:00
healthreport feat: add support for _health_report (#1002) 2025-04-01 21:58:28 -04:00
ilm_indices Refactor tests for ilm_indices 2023-11-14 21:38:31 -05:00
ilm_status Refactor tests for ilm_status 2023-11-14 21:46:15 -05:00
indices Add tests for Indices.shard 2025-03-02 20:31:11 -05:00
indices_mappings Refactor tests for indices_mappings 2023-11-14 21:57:40 -05:00
indices_settings Refactor tests for indices settings (#982) 2025-03-09 20:47:43 -04:00
nodestats Refactor tests for nodes collector 2024-09-28 12:15:03 -04:00
shards Add tests for shards collector 2024-09-28 11:29:21 -04:00
slm Refactor tests for slm collector (#928) 2024-09-13 15:11:55 -04:00
snapshots Update tests for the snapshot collector (#787) 2023-10-11 07:02:56 -04:00
settings-5.4.2.json move test json into fixture files 2019-08-16 15:45:04 +02:00
settings-7.3.0.json add watermark metrics (#611) 2023-07-21 14:56:48 -04:00
settings-8.9.1-watermark.json Fix mixed value types for disk watermark (#1055) 2025-10-27 21:12:26 -04:00
settings-merge-5.4.2.json move test json into fixture files 2019-08-16 15:45:04 +02:00
settings-persistent-clustermaxshardspernode-7.17.5.json add watermark metrics (#611) 2023-07-21 14:56:48 -04:00