You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why? you can, for example, write metrics in Prometheus or organize your own custom processing.
Writer callbacks
// call after write to tmp bufferfunconWrite(view cx.View) {}
// call after write batch to ClickhousefunconWriteClickhouse(view cx.View, countuint64) {}
// call if write to clickhouse return error// if this function has called, then repeated attempts are not enabledfunconWriteClickhouseError(errerror, batch*cx.Batch) {}
Retry callbacks
// call after batch push to retry queuefunconRetryPush() {}
// call after rerty successfully handlefunconRetryComplete(view cx.View, countAttemptuint8) {}
// call if retry batch failsfunconRetryFail(errerror, batch*retry.Retry)
examples:
// note: there is a pseudocodefunconWriteClickhouse(view cx.View, countuint64) {
prometheus.WithLabelValues("clickhouse", view.Table).Add(count)
}
funconWriteClickhouseError(errerror, batch*cx.Batch) {
// codeprometheus.WithLabelValues("clickhouse", batch.View().Table, getErrorHumanableCode(err)).Inc()
// save batch to athoner storange, for example file_=failservice.Encode(batch).Write(ctx)
// other code
}
The text was updated successfully, but these errors were encountered:
Why? you can, for example, write metrics in Prometheus or organize your own custom processing.
Writer callbacks
Retry callbacks
examples:
The text was updated successfully, but these errors were encountered: