-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make sure templates preserve the same amount of white space
- Loading branch information
1 parent
6c8847a
commit 05d8059
Showing
13 changed files
with
402 additions
and
412 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,18 @@ | ||
{{/* | ||
NOTE: Changes made to this template should be reflected on the following templates, if applicable: | ||
* cmd/agent/gui/views/templates/generalStatus.tmpl | ||
*/}} | ||
|
||
========== | ||
*/}}========== | ||
Endpoints | ||
========== | ||
|
||
{{- with .endpointsInfos}} | ||
{{- range $key, $value := .}} | ||
{{- with .endpointsInfos -}} | ||
{{ range $key, $value := .}} | ||
{{$key}} - API Key{{ if gt (len $value) 1}}s{{end}} ending with: | ||
{{- range $idx, $apikey := $value }} | ||
- {{$apikey}} | ||
{{- end}} | ||
{{- end}} | ||
{{- else }} | ||
|
||
No endpoints information. The agent may be misconfigured. | ||
{{- end }} | ||
No endpoints information. The agent may be misconfigured. | ||
{{end }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,95 +1,93 @@ | ||
{{/* | ||
NOTE: Changes made to this template should be reflected on the following templates, if applicable: | ||
* cmd/agent/gui/views/templates/generalStatus.tmpl | ||
*/}} | ||
|
||
========= | ||
*/}}========= | ||
Forwarder | ||
========= | ||
{{- with .forwarderStats -}} | ||
{{ if .Transactions }} | ||
Transactions | ||
============ | ||
{{- range $key, $value := .Transactions }} | ||
{{- if and (ne $key "InputBytesByEndpoint") (ne $key "InputCountByEndpoint") (ne $key "DroppedByEndpoint") (ne $key "RequeuedByEndpoint") (ne $key "RetriedByEndpoint") (ne $key "Success") (ne $key "SuccessByEndpoint") (ne $key "SuccessBytesByEndpoint") (ne $key "Errors") (ne $key "ErrorsByType") (ne $key "HTTPErrors") (ne $key "HTTPErrorsByCode") (ne $key "ConnectionEvents")}} | ||
{{$key}}: {{humanize $value}} | ||
{{- end}} | ||
{{with .forwarderStats -}} | ||
{{ if .Transactions }} | ||
Transactions | ||
============ | ||
{{- range $key, $value := .Transactions }} | ||
{{- if and (ne $key "InputBytesByEndpoint") (ne $key "InputCountByEndpoint") (ne $key "DroppedByEndpoint") (ne $key "RequeuedByEndpoint") (ne $key "RetriedByEndpoint") (ne $key "Success") (ne $key "SuccessByEndpoint") (ne $key "SuccessBytesByEndpoint") (ne $key "Errors") (ne $key "ErrorsByType") (ne $key "HTTPErrors") (ne $key "HTTPErrorsByCode") (ne $key "ConnectionEvents")}} | ||
{{$key}}: {{humanize $value}} | ||
{{- end}} | ||
{{- if .Transactions.DroppedOnInput }} | ||
{{- end}} | ||
{{- if .Transactions.DroppedOnInput }} | ||
|
||
Warning: the forwarder dropped transactions, there is probably an issue with your network | ||
More info at https://github.com/DataDog/datadog-agent/tree/main/docs/agent/status.md | ||
{{- end}} | ||
{{- if .Transactions.Success}} | ||
Warning: the forwarder dropped transactions, there is probably an issue with your network | ||
More info at https://github.com/DataDog/datadog-agent/tree/main/docs/agent/status.md | ||
{{- end}} | ||
{{- if .Transactions.Success}} | ||
|
||
Transaction Successes | ||
===================== | ||
Total number: {{.Transactions.Success}} | ||
Successes By Endpoint: | ||
{{- range $type, $count := .Transactions.SuccessByEndpoint }} | ||
{{- if $count }} | ||
{{$type}}: {{humanize $count}} | ||
{{- end}} | ||
Transaction Successes | ||
===================== | ||
Total number: {{.Transactions.Success}} | ||
Successes By Endpoint: | ||
{{- range $type, $count := .Transactions.SuccessByEndpoint }} | ||
{{- if $count }} | ||
{{$type}}: {{humanize $count}} | ||
{{- end}} | ||
{{- end}} | ||
{{- if .Transactions.Errors }} | ||
{{- end}} | ||
{{- end}} | ||
{{- if .Transactions.Errors }} | ||
|
||
Transaction Errors | ||
================== | ||
Total number: {{.Transactions.Errors}} | ||
Errors By Type: | ||
{{- range $type, $count := .Transactions.ErrorsByType }} | ||
{{- if $count }} | ||
{{$type}}: {{humanize $count}} | ||
{{- end}} | ||
Transaction Errors | ||
================== | ||
Total number: {{.Transactions.Errors}} | ||
Errors By Type: | ||
{{- range $type, $count := .Transactions.ErrorsByType }} | ||
{{- if $count }} | ||
{{$type}}: {{humanize $count}} | ||
{{- end}} | ||
{{- end}} | ||
{{- if .Transactions.HTTPErrors }} | ||
|
||
HTTP Errors | ||
================== | ||
Total number: {{.Transactions.HTTPErrors}} | ||
HTTP Errors By Code: | ||
{{- range $code, $count := .Transactions.HTTPErrorsByCode }} | ||
{{- if $count}} | ||
{{$code}}: {{humanize $count}} | ||
{{- end}} | ||
{{- end}} | ||
{{- end}} | ||
{{- end}} | ||
{{- if .Transactions.HTTPErrors }} | ||
|
||
On-disk storage | ||
=============== | ||
{{- if .forwarder_storage_max_size_in_bytes }} | ||
{{- if .FileStorage.CurrentSizeInBytes }} | ||
Disk usage in bytes: {{ .FileStorage.CurrentSizeInBytes }} | ||
Current number of files: {{ .FileStorage.FilesCount }} | ||
Number of files dropped: {{ .FileStorage.FilesRemovedCount }} | ||
Deserialization errors count: {{ .FileStorage.DeserializeErrorsCount }} | ||
Outdated files removed at startup: {{ .RemovalPolicy.OutdatedFilesCount }} | ||
{{- else }} | ||
Enabled, not in-use. | ||
HTTP Errors | ||
================== | ||
Total number: {{.Transactions.HTTPErrors}} | ||
HTTP Errors By Code: | ||
{{- range $code, $count := .Transactions.HTTPErrorsByCode }} | ||
{{- if $count}} | ||
{{$code}}: {{humanize $count}} | ||
{{- end}} | ||
{{- end}} | ||
{{- end}} | ||
{{- end}} | ||
|
||
On-disk storage | ||
=============== | ||
{{- if .forwarder_storage_max_size_in_bytes }} | ||
{{- if .FileStorage.CurrentSizeInBytes }} | ||
Disk usage in bytes: {{ .FileStorage.CurrentSizeInBytes }} | ||
Current number of files: {{ .FileStorage.FilesCount }} | ||
Number of files dropped: {{ .FileStorage.FilesRemovedCount }} | ||
Deserialization errors count: {{ .FileStorage.DeserializeErrorsCount }} | ||
Outdated files removed at startup: {{ .RemovalPolicy.OutdatedFilesCount }} | ||
{{- else }} | ||
On-disk storage is disabled. Configure `forwarder_storage_max_size_in_bytes` to enable it. | ||
Enabled, not in-use. | ||
{{- end}} | ||
{{- else }} | ||
On-disk storage is disabled. Configure `forwarder_storage_max_size_in_bytes` to enable it. | ||
{{- end}} | ||
|
||
{{- if .APIKeyStatus }} | ||
{{- if .APIKeyStatus }} | ||
|
||
API Keys status | ||
=============== | ||
{{- range $key, $value := .APIKeyStatus }} | ||
{{$key}}: {{$value}} | ||
{{- end }} | ||
{{- end}} | ||
API Keys status | ||
=============== | ||
{{- range $key, $value := .APIKeyStatus }} | ||
{{$key}}: {{$value}} | ||
{{- end }} | ||
{{- end}} | ||
|
||
{{- if .APIKeyFailure }} | ||
{{- if .APIKeyFailure }} | ||
|
||
API Keys errors | ||
=============== | ||
{{- range $key, $value := .APIKeyFailure }} | ||
{{yellowText $key}}{{yellowText ":"}} {{yellowText $value}} | ||
{{- end }} | ||
{{- end}} | ||
API Keys errors | ||
=============== | ||
{{- range $key, $value := .APIKeyFailure }} | ||
{{yellowText $key}}{{yellowText ":"}} {{yellowText $value}} | ||
{{- end }} | ||
{{- end}} | ||
{{- end}} | ||
|
Oops, something went wrong.