Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
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: 1 addition & 1 deletion traffic_monitor/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func (handler Handler) Handle(id string, rdr io.Reader, format string, reqTime t
handler.resultChan <- result
return
}
if val, ok := miscStats["current_time_epoch_ms"]; ok {
if val, ok := miscStats["plugin.system_stats.timestamp_ms"]; ok {
valString := fmt.Sprintf("%s", val)
valInt, valErr := strconv.ParseInt(valString, 10, 64)
if valErr != nil {
Expand Down
8 changes: 4 additions & 4 deletions traffic_monitor/cache/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ func TestParseAndDecode(t *testing.T) {
t.Errorf("empty miscStats structure")
}

if val, ok := miscStats["current_time_epoch_ms"]; ok {
if val, ok := miscStats["plugin.system_stats.timestamp_ms"]; ok {
valString := fmt.Sprintf("%s", val)
if valString != "1684784878894" {
t.Errorf("unable to read `current_time_epoch_ms`")
if valString != "1684784877939" {
t.Errorf("unable to read `plugin.system_stats.timestamp_ms`")
}
} else {
t.Errorf("current_time_epoch_ms field was not found in the json file")
t.Errorf("plugin.system_stats.timestamp_ms field was not found in the json file")
}
}
2 changes: 1 addition & 1 deletion traffic_monitor/cache/stats_over_http.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"global": {
"plugin.system_stats.timestamp_ms": "1684784877939",
Comment thread
rimashah25 marked this conversation as resolved.
"proxy.process.http.completed_requests": 26220072200,
"proxy.process.http.total_incoming_connections": 770802777,
"proxy.process.http.total_client_connections": 770802777,
Expand Down Expand Up @@ -533,7 +534,6 @@
"plugin.system_stats.net.docker0.rx_length_errors": "0",
"proxy.process.cache.volume_0.span.offline": "0",
"proxy.process.cache.volume_0.span.online": "0",
"current_time_epoch_ms": "1684784878894",
"server": "10.0.0"
}
}