Skip to content

Commit 585931d

Browse files
author
Jean-Baptiste Besselat
committed
[es] set default values for some metrics
1 parent b7809b8 commit 585931d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject cauchy "0.1.103"
1+
(defproject cauchy "0.1.104"
22
:description "Cauchy is an agent for Riemann"
33
:url "https://github.com/pguillebert/cauchy"
44
:scm {:name "git"

src/cauchy/jobs/elasticsearch.clj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@
9090
{:service "local_active_shards"
9191
:metric (count-local-active-shards conf)}
9292
{:service "docs_in_cluster"
93-
:metric (get-in stats [:_all :primaries :docs :count])}
93+
:metric (get-in stats [:_all :primaries :docs :count] 0)}
9494
{:service "docs_deleted_count"
95-
:metric (get-in stats [:_all :primaries :docs :deleted])}
95+
:metric (get-in stats [:_all :primaries :docs :deleted] 0)}
9696
{:service "cluster_size_in_bytes"
97-
:metric (get-in stats [:_all :primaries :store :size_in_bytes])}
97+
:metric (get-in stats [:_all :primaries :store :size_in_bytes] 0)}
9898
{:service "fielddata_memory_size_in_bytes"
99-
:metric (get-in stats [:_all :total :fielddata :memory_size_in_bytes])}
99+
:metric (get-in stats [:_all :total :fielddata :memory_size_in_bytes] 0)}
100100
{:service "fielddata_evictions"
101-
:metric (get-in stats [:_all :total :fielddata :evictions])}
101+
:metric (get-in stats [:_all :total :fielddata :evictions] 0)}
102102
{:service "active_shards" :metric active_shards}
103103
{:service "unassigned_shards" :metric unassigned_shards}
104104
{:service "relocating_shards" :metric relocating_shards}

0 commit comments

Comments
 (0)