示例#1
0
文件: types.go 项目: Netflix/rend
	MetricCmdGatTouchL2        = metrics.AddCounter("cmd_gat_touch_l2", nil)
	MetricCmdGatTouchHitsL2    = metrics.AddCounter("cmd_gat_touch_hits_l2", nil)
	MetricCmdGatTouchMissesL2  = metrics.AddCounter("cmd_gat_touch_misses_l2", nil)
	MetricCmdGatTouchErrorsL2  = metrics.AddCounter("cmd_gat_touch_errors_l2", nil)

	// Batch L1L2 gat metrics
	MetricCmdGatTouchL1       = metrics.AddCounter("cmd_gat_touch_l1", nil)
	MetricCmdGatTouchMissesL1 = metrics.AddCounter("cmd_gat_touch_misses_l1", nil)
	MetricCmdGatTouchErrorsL1 = metrics.AddCounter("cmd_gat_touch_errors_l1", nil)
	MetricCmdGatTouchHitsL1   = metrics.AddCounter("cmd_gat_touch_hits_l1", nil)

	// Special metrics
	MetricInconsistencyDetected = metrics.AddCounter("inconsistency_detected", nil)

	// Histograms for sub-operations
	HistSetL1     = metrics.AddHistogram("set_l1", false, nil)
	HistSetL2     = metrics.AddHistogram("set_l2", false, nil)
	HistAddL1     = metrics.AddHistogram("add_l1", false, nil)
	HistAddL2     = metrics.AddHistogram("add_l2", false, nil)
	HistReplaceL1 = metrics.AddHistogram("replace_l1", false, nil)
	HistReplaceL2 = metrics.AddHistogram("replace_l2", false, nil)
	HistAppendL1  = metrics.AddHistogram("append_l1", false, nil)
	HistAppendL2  = metrics.AddHistogram("append_l2", false, nil)
	HistPrependL1 = metrics.AddHistogram("prepend_l1", false, nil)
	HistPrependL2 = metrics.AddHistogram("prepend_l2", false, nil)
	HistDeleteL1  = metrics.AddHistogram("delete_l1", false, nil)
	HistDeleteL2  = metrics.AddHistogram("delete_l2", false, nil)
	HistTouchL1   = metrics.AddHistogram("touch_l1", false, nil)
	HistTouchL2   = metrics.AddHistogram("touch_l2", false, nil)

	HistGetL1 = metrics.AddHistogram("get_l1", false, nil) // not sampled until configurable
示例#2
0
文件: types.go 项目: Netflix/rend
	MetricErrUnrecoverable          = metrics.AddCounter("err_unrecoverable", nil)

	MetricCmdGet     = metrics.AddCounter("cmd_get", nil)
	MetricCmdGetE    = metrics.AddCounter("cmd_gete", nil)
	MetricCmdSet     = metrics.AddCounter("cmd_set", nil)
	MetricCmdAdd     = metrics.AddCounter("cmd_add", nil)
	MetricCmdReplace = metrics.AddCounter("cmd_replace", nil)
	MetricCmdAppend  = metrics.AddCounter("cmd_append", nil)
	MetricCmdPrepend = metrics.AddCounter("cmd_prepend", nil)
	MetricCmdDelete  = metrics.AddCounter("cmd_delete", nil)
	MetricCmdTouch   = metrics.AddCounter("cmd_touch", nil)
	MetricCmdGat     = metrics.AddCounter("cmd_gat", nil)
	MetricCmdUnknown = metrics.AddCounter("cmd_unknown", nil)
	MetricCmdNoop    = metrics.AddCounter("cmd_noop", nil)
	MetricCmdQuit    = metrics.AddCounter("cmd_quit", nil)
	MetricCmdVersion = metrics.AddCounter("cmd_version", nil)

	HistSet     = metrics.AddHistogram("set", false, nil)
	HistAdd     = metrics.AddHistogram("add", false, nil)
	HistReplace = metrics.AddHistogram("replace", false, nil)
	HistAppend  = metrics.AddHistogram("append", false, nil)
	HistPrepend = metrics.AddHistogram("prepend", false, nil)
	HistDelete  = metrics.AddHistogram("delete", false, nil)
	HistTouch   = metrics.AddHistogram("touch", false, nil)
	HistGet     = metrics.AddHistogram("get", false, nil)  // not sampled until configurable
	HistGetE    = metrics.AddHistogram("gete", false, nil) // not sampled until configurable
	HistGat     = metrics.AddHistogram("gat", false, nil)  // not sampled until configurable

	// TODO: inconsistency metrics for when L1 is not a subset of L2
)