Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions installer/conf/td-agent-bit.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
Parser docker
Mem_Buf_Limit 30m
Path_Key filepath
Buffer_Chunk_Size 1m
Buffer_Max_Size 1m
Skip_Long_Lines On

[OUTPUT]
Expand Down
7 changes: 4 additions & 3 deletions source/code/go/src/plugins/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ const (
metricNameAvgFlushRate = "ContainerLogAvgRecordsFlushedPerSec"
defaultTelemetryPushIntervalSeconds = 300

// EventNameContainerLogInit name of the event
EventNameContainerLogInit = "ContainerLogPluginInitialized"
eventNameContainerLogInit = "ContainerLogPluginInitialized"
eventNameDaemonSetHeartbeat = "ContainerLogDaemonSetHeartbeatEvent"
)

// Initialize initializes the telemetry artifacts
Expand Down Expand Up @@ -111,9 +111,10 @@ func SendContainerLogFlushRateMetric(telemetryPushIntervalProperty string, agent
runtime.Goexit()
}

SendEvent(EventNameContainerLogInit, make(map[string]string))
SendEvent(eventNameContainerLogInit, make(map[string]string))

for ; true; <-ContainerLogTelemetryTicker.C {
SendEvent(eventNameDaemonSetHeartbeat, make(map[string]string))
DataUpdateMutex.Lock()
flushRate := FlushedRecordsCount / FlushedRecordsTimeTaken * 1000
Log("Flushed Records : %f Time Taken : %f flush Rate : %f", FlushedRecordsCount, FlushedRecordsTimeTaken, flushRate)
Expand Down