diff --git a/cmd/agent/gui/views/templates/generalStatus.tmpl b/cmd/agent/gui/views/templates/generalStatus.tmpl index bece40e2162fb4..4d6946c70691b0 100644 --- a/cmd/agent/gui/views/templates/generalStatus.tmpl +++ b/cmd/agent/gui/views/templates/generalStatus.tmpl @@ -479,9 +479,61 @@ -
+
APM - Loading... + + {{- with .apmStats -}} + {{- if .error }} + Not running or unreachable on localhost:{{.port}}
+ Error: {{.error}}
+ {{- else}} + Status: Running
+ Pid: {{.pid}}
+ Uptime: {{.uptime}} seconds
+ Mem alloc: {{humanize .memstats.Alloc}} bytes
+ Hostname: {{.config.Hostname}}
+ Receiver: {{.config.ReceiverHost}}:{{.config.ReceiverPort}}
+ Endpoints: + + {{- range $i, $e := .config.Endpoints}} + {{ $e.Host }}
+ {{- end }} +
+ Receiver (previous minute) + + {{- if eq (len .receiver) 0}} + No traces received in the previous minute.
+ {{ else }} + {{ range $i, $ts := .receiver }} + From {{if $ts.Lang}}{{ $ts.Lang }} {{ $ts.LangVersion }} ({{ $ts.Interpreter }}), client {{ $ts.TracerVersion }}{{else}}unknown clients{{end}} + + Traces received: {{ $ts.TracesReceived }} ({{ humanize $ts.TracesBytes }} bytes)
+ Spans received: {{ $ts.SpansReceived }} + {{ with $ts.WarnString }} +
WARNING: {{ . }}
+ {{ end }} +
+ {{ end }} + {{ end }} + + {{range $key, $value := .ratebyservice_filtered -}} + {{- if eq $key "service:,env:" -}} + Default priority sampling rate: {{percent $value}}% + {{- else}} + Priority sampling rate for '{{ $key }}': {{percent $value}}% + {{- end}} + {{- end }} +
+ Writer (previous minute) + + Traces: {{.trace_writer.Payloads}} payloads, {{.trace_writer.Traces}} traces, {{.trace_writer.Events}} events, {{humanize .trace_writer.Bytes}} bytes
+ {{- if gt .trace_writer.Errors 0.0}}WARNING: Traces API errors (1 min): {{.trace_writer.Errors}}{{end}} + Stats: {{.stats_writer.Payloads}} payloads, {{.stats_writer.StatsBuckets}} stats buckets, {{humanize .stats_writer.Bytes}} bytes
+ {{- if gt .stats_writer.Errors 0.0}}WARNING: Stats API errors (1 min): {{.stats_writer.Errors}}{{end}} +
+ {{- end }} + {{ end }} +
@@ -533,7 +585,8 @@ {{- end }} {{ end }} -
+
+