mirror of https://github.com/milvus-io/milvus.git
Cherry-pick from master pr: #28767 See also #28765 --------- Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/29369/head
parent
869f89cf33
commit
b9757f8433
|
@ -45,6 +45,7 @@ import (
|
|||
"github.com/milvus-io/milvus/pkg/metrics"
|
||||
"github.com/milvus-io/milvus/pkg/util/merr"
|
||||
"github.com/milvus-io/milvus/pkg/util/metautil"
|
||||
"github.com/milvus-io/milvus/pkg/util/paramtable"
|
||||
"github.com/milvus-io/milvus/pkg/util/timerecord"
|
||||
"github.com/milvus-io/milvus/pkg/util/tsoutil"
|
||||
"github.com/milvus-io/milvus/pkg/util/typeutil"
|
||||
|
@ -1325,6 +1326,8 @@ func (m *meta) UpdateChannelCheckpoint(vChannel string, pos *msgpb.MsgPosition)
|
|||
zap.Uint64("ts", pos.GetTimestamp()),
|
||||
zap.ByteString("msgID", pos.GetMsgID()),
|
||||
zap.Time("time", ts))
|
||||
metrics.DataCoordCheckpointUnixSeconds.WithLabelValues(fmt.Sprint(paramtable.GetNodeID()), vChannel).
|
||||
Set(float64(ts.Unix()))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -564,6 +564,7 @@ func (s *Server) DropVirtualChannel(ctx context.Context, req *datapb.DropVirtual
|
|||
s.segmentManager.DropSegmentsOfChannel(ctx, channel)
|
||||
|
||||
metrics.CleanupDataCoordNumStoredRows(collectionID)
|
||||
metrics.DataCoordCheckpointUnixSeconds.DeleteLabelValues(fmt.Sprint(paramtable.GetNodeID()), channel)
|
||||
|
||||
// no compaction triggered in Drop procedure
|
||||
return resp, nil
|
||||
|
|
|
@ -100,6 +100,17 @@ var (
|
|||
channelNameLabelName,
|
||||
})
|
||||
|
||||
DataCoordCheckpointUnixSeconds = prometheus.NewGaugeVec(
|
||||
prometheus.GaugeOpts{
|
||||
Namespace: milvusNamespace,
|
||||
Subsystem: typeutil.DataCoordRole,
|
||||
Name: "channel_checkpoint_unix_seconds",
|
||||
Help: "channel checkpoint timestamp in unix seconds",
|
||||
}, []string{
|
||||
nodeIDLabelName,
|
||||
channelNameLabelName,
|
||||
})
|
||||
|
||||
DataCoordStoredBinlogSize = prometheus.NewGaugeVec(
|
||||
prometheus.GaugeOpts{
|
||||
Namespace: milvusNamespace,
|
||||
|
@ -250,6 +261,7 @@ func RegisterDataCoord(registry *prometheus.Registry) {
|
|||
registry.MustRegister(DataCoordNumStoredRows)
|
||||
registry.MustRegister(DataCoordNumStoredRowsCounter)
|
||||
registry.MustRegister(DataCoordConsumeDataNodeTimeTickLag)
|
||||
registry.MustRegister(DataCoordCheckpointUnixSeconds)
|
||||
registry.MustRegister(DataCoordStoredBinlogSize)
|
||||
registry.MustRegister(DataCoordSegmentBinLogFileCount)
|
||||
registry.MustRegister(DataCoordDmlChannelNum)
|
||||
|
|
Loading…
Reference in New Issue