Skip to content

Commit

Permalink
Change cardinality stat to working_cardinality
Browse files Browse the repository at this point in the history
  • Loading branch information
desa committed Mar 2, 2017
1 parent a4bbdb9 commit bf4ee90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions node.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ import (
)

const (
statErrorCount = "errors"
// TODO: Change to working_cardinality
statsCardinalityGauge = "cardinality"
statErrorCount = "errors"
statsCardinalityGauge = "working_cardinality"
statAverageExecTime = "avg_exec_time_ns"
)

Expand Down
8 changes: 4 additions & 4 deletions server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,10 @@ func TestServer_EnableTask(t *testing.T) {
dot := `digraph testTaskID {
graph [throughput="0.00 points/s"];
stream0 [avg_exec_time_ns="0s" cardinality="0" errors="0" ];
stream0 [avg_exec_time_ns="0s" errors="0" working_cardinality="0" ];
stream0 -> from1 [processed="0"];
from1 [avg_exec_time_ns="0s" cardinality="0" errors="0" ];
from1 [avg_exec_time_ns="0s" errors="0" working_cardinality="0" ];
}`
if ti.Dot != dot {
t.Fatalf("unexpected dot\ngot\n%s\nexp\n%s\n", ti.Dot, dot)
Expand Down Expand Up @@ -479,10 +479,10 @@ func TestServer_EnableTaskOnCreate(t *testing.T) {
dot := `digraph testTaskID {
graph [throughput="0.00 points/s"];
stream0 [avg_exec_time_ns="0s" cardinality="0" errors="0" ];
stream0 [avg_exec_time_ns="0s" errors="0" working_cardinality="0" ];
stream0 -> from1 [processed="0"];
from1 [avg_exec_time_ns="0s" cardinality="0" errors="0" ];
from1 [avg_exec_time_ns="0s" errors="0" working_cardinality="0" ];
}`
if ti.Dot != dot {
t.Fatalf("unexpected dot\ngot\n%s\nexp\n%s\n", ti.Dot, dot)
Expand Down

0 comments on commit bf4ee90

Please sign in to comment.