update thrift, opencensus, others (#893)

* update thrift, opencensus, others

* stats: update to opencensus 0.6.0 view api
This commit is contained in:
Reed Allman
2018-03-26 15:43:49 -07:00
committed by GitHub
parent 0ce5c4500b
commit 8af605cf3d
1266 changed files with 122191 additions and 28775 deletions

View File

@@ -950,7 +950,7 @@ func init() {
"docker container stats for "+key,
[]tag.Key{appKey, pathKey},
dockerStatsDist,
view.DistributionAggregation{},
view.Distribution(),
)
if err != nil {
logrus.Fatalf("cannot create view: %v", err)

View File

@@ -127,7 +127,7 @@ func init() {
"number of times we've retried docker API upon failure",
[]tag.Key{appKey, pathKey},
dockerRetriesMeasure,
view.SumAggregation{},
view.Sum(),
)
if err != nil {
logrus.Fatalf("cannot create view: %v", err)
@@ -147,7 +147,7 @@ func init() {
"number of times we've timed out calling docker API",
[]tag.Key{appKey, pathKey},
dockerTimeoutMeasure,
view.CountAggregation{},
view.Count(),
)
if err != nil {
logrus.Fatalf("cannot create view: %v", err)
@@ -167,7 +167,7 @@ func init() {
"number of unrecoverable errors from docker API",
[]tag.Key{appKey, pathKey},
dockerErrorMeasure,
view.CountAggregation{},
view.Count(),
)
if err != nil {
logrus.Fatalf("cannot create view: %v", err)
@@ -187,7 +187,7 @@ func init() {
"number of docker container oom",
[]tag.Key{appKey, pathKey},
dockerOOMMeasure,
view.CountAggregation{},
view.Count(),
)
if err != nil {
logrus.Fatalf("cannot create view: %v", err)

View File

@@ -180,7 +180,7 @@ func init() {
"containers in state "+key,
[]tag.Key{appKey, pathKey},
measure,
view.CountAggregation{},
view.Count(),
)
if err != nil {
logrus.Fatalf("cannot create view: %v", err)
@@ -203,7 +203,7 @@ func init() {
"time spent in container state "+key,
[]tag.Key{appKey, pathKey},
measure,
view.DistributionAggregation{},
view.Distribution(),
)
if err != nil {
logrus.Fatalf("cannot create view: %v", err)

View File

@@ -105,7 +105,7 @@ func init() {
"calls currently queued to agent",
[]tag.Key{appKey, pathKey},
queuedMeasure,
view.SumAggregation{},
view.Sum(),
)
if err != nil {
logrus.Fatalf("cannot create view: %v", err)
@@ -125,7 +125,7 @@ func init() {
"calls created in agent",
[]tag.Key{appKey, pathKey},
callsMeasure,
view.SumAggregation{},
view.Sum(),
)
if err != nil {
logrus.Fatalf("cannot create view: %v", err)
@@ -145,7 +145,7 @@ func init() {
"calls currently running in agent",
[]tag.Key{appKey, pathKey},
runningMeasure,
view.SumAggregation{},
view.Sum(),
)
if err != nil {
logrus.Fatalf("cannot create view: %v", err)
@@ -165,7 +165,7 @@ func init() {
"calls completed in agent",
[]tag.Key{appKey, pathKey},
completedMeasure,
view.SumAggregation{},
view.Sum(),
)
if err != nil {
logrus.Fatalf("cannot create view: %v", err)
@@ -185,7 +185,7 @@ func init() {
"calls failed in agent",
[]tag.Key{appKey, pathKey},
failedMeasure,
view.SumAggregation{},
view.Sum(),
)
if err != nil {
logrus.Fatalf("cannot create view: %v", err)
@@ -205,7 +205,7 @@ func init() {
"calls timed out in agent",
[]tag.Key{appKey, pathKey},
timedoutMeasure,
view.SumAggregation{},
view.Sum(),
)
if err != nil {
logrus.Fatalf("cannot create view: %v", err)
@@ -225,7 +225,7 @@ func init() {
"calls errored in agent",
[]tag.Key{appKey, pathKey},
errorsMeasure,
view.SumAggregation{},
view.Sum(),
)
if err != nil {
logrus.Fatalf("cannot create view: %v", err)
@@ -245,7 +245,7 @@ func init() {
"calls where server was too busy in agent",
[]tag.Key{appKey, pathKey},
serverBusyMeasure,
view.SumAggregation{},
view.Sum(),
)
if err != nil {
logrus.Fatalf("cannot create view: %v", err)

View File

@@ -201,7 +201,7 @@ func init() {
"uploaded log size",
[]tag.Key{appKey, pathKey},
uploadSizeMeasure,
view.DistributionAggregation{},
view.Distribution(),
)
if err != nil {
logrus.Fatalf("cannot create view: %v", err)
@@ -221,7 +221,7 @@ func init() {
"downloaded log size",
[]tag.Key{appKey, pathKey},
downloadSizeMeasure,
view.DistributionAggregation{},
view.Distribution(),
)
if err != nil {
logrus.Fatalf("cannot create view: %v", err)