|
| 1 | +#{{ .checkId}} Globally aggregated query metrics |
| 2 | + |
| 3 | +## Observations ## |
| 4 | +{{if .hosts.master}} |
| 5 | +### Master (`{{.hosts.master}}`) ### |
| 6 | +Start:{{ (index (index (index .results .hosts.master)"data")"start_timestamptz")}} |
| 7 | +End:{{ (index (index (index .results .hosts.master)"data")"end_timestamptz")}} |
| 8 | +Period seconds:{{ (index (index (index .results .hosts.master)"data")"period_seconds")}} |
| 9 | +Period age:{{ (index (index (index .results .hosts.master)"data")"period_age")}} |
| 10 | + |
| 11 | +Error (calls):{{ NumFormat (index (index (index .results .hosts.master)"data")"absolute_error_calls") 2}} ({{ NumFormat (index (index (index .results .hosts.master)"data")"relative_error_calls") 2}}%) |
| 12 | +Error (total time):{{ NumFormat (index (index (index .results .hosts.master)"data")"absolute_error_total_time") 2}} ({{ NumFormat (index (index (index .results .hosts.master)"data")"relative_error_total_time") 2}}%) |
| 13 | + |
| 14 | +Calls | Total time | Rows | shared_blks_hit | shared_blks_read | shared_blks_dirtied | shared_blks_written | blk_read_time | blk_write_time | kcache_reads | kcache_writes | kcache_user_time_ms | kcache_system_time |
| 15 | +-------|------------|------|-----------------|------------------|---------------------|---------------------|---------------|----------------|--------------|---------------|---------------------|-------------------- |
| 16 | +{{ range$i,$key := (index (index (index (index .results .hosts.master)"data")"aggregated")"_keys")}} |
| 17 | +{{-$value := (index (index (index (index $.results $.hosts.master)"data")"aggregated")$key) -}} |
| 18 | +{{- NumFormat$value.diff_calls 2}}<br/>{{ NumFormat$value.per_sec_calls 2}}/sec<br/>{{ NumFormat$value.per_call_calls 2}}/call<br/>{{ NumFormat$value.ratio_calls 2}}% | |
| 19 | +{{- MsFormat$value.diff_total_time}}<br/>{{ MsFormat$value.per_sec_total_time}}/sec<br/>{{ MsFormat$value.per_call_total_time}}/call<br/>{{ NumFormat$value.ratio_total_time 2}}% | |
| 20 | +{{- NumFormat$value.diff_rows 2}}<br/>{{ NumFormat$value.per_sec_rows 2}}/sec<br/>{{ NumFormat$value.per_call_rows 2}}/call<br/>{{ NumFormat$value.ratio_rows 2}}% | |
| 21 | +{{- NumFormat$value.diff_shared_blks_hit 2}} blks<br/>{{ NumFormat$value.per_sec_shared_blks_hit 2}} blks/sec<br/>{{ NumFormat$value.per_call_shared_blks_hit 2}} blks/call<br/>{{ NumFormat$value.ratio_shared_blks_hit 2}}% | |
| 22 | +{{- NumFormat$value.diff_shared_blks_read 2}} blks<br/>{{ NumFormat$value.per_sec_shared_blks_read 2}} blks/sec<br/>{{ NumFormat$value.per_call_shared_blks_read 2}} blks/call<br/>{{ NumFormat$value.ratio_shared_blks_read 2}}% | |
| 23 | +{{- NumFormat$value.diff_shared_blks_dirtied 2}} blks<br/>{{ NumFormat$value.per_sec_shared_blks_dirtied 2}} blks/sec<br/>{{ NumFormat$value.per_call_shared_blks_dirtied 2}} blks/call<br/>{{ NumFormat$value.ratio_shared_blks_dirtied 2}}% | |
| 24 | +{{- NumFormat$value.diff_shared_blks_written 2}} blks<br/>{{ NumFormat$value.per_sec_shared_blks_written 2}} blks/sec<br/>{{ NumFormat$value.per_call_shared_blks_written 2}} blks/call<br/>{{ NumFormat$value.ratio_shared_blks_written 2}}% | |
| 25 | +{{- MsFormat$value.diff_blk_read_time}}<br/>{{ MsFormat$value.per_sec_blk_read_time}}/sec<br/>{{ MsFormat$value.per_call_blk_read_time}}/call<br/>{{ NumFormat$value.ratio_blk_read_time 2}}% | |
| 26 | +{{- MsFormat$value.diff_blk_write_time}}<br/>{{ MsFormat$value.per_sec_blk_write_time}}/sec<br/>{{ MsFormat$value.per_call_blk_write_time}}/call<br/>{{ MsFormat$value.per_call_blk_write_time}}/call<br/>{{ NumFormat$value.ratio_blk_write_time 2}}% | |
| 27 | +{{- NumFormat$value.diff_kcache_reads 2}} bytes<br/>{{ NumFormat$value.per_sec_kcache_reads 2}} bytes/sec<br/>{{ NumFormat$value.per_call_kcache_reads 2}} bytes/call<br/>{{ NumFormat$value.ratio_kcache_reads 2}}% | |
| 28 | +{{- NumFormat$value.diff_kcache_writes 2}} bytes<br/>{{ NumFormat$value.per_sec_kcache_writes 2}} bytes/sec<br/>{{ NumFormat$value.per_call_kcache_writes 2}} bytes/call<br/>{{ NumFormat$value.ratio_kcache_writes 2}}% | |
| 29 | +{{- MsFormat$value.diff_kcache_user_time_ms}}<br/>{{ MsFormat$value.per_sec_kcache_user_time_ms}}/sec<br/>{{ MsFormat$value.per_call_kcache_user_time_ms}}/call<br/>{{ NumFormat$value.ratio_kcache_user_time_ms 2}}% | |
| 30 | +{{- MsFormat$value.diff_kcache_system_time_ms}}<br/>{{ MsFormat$value.per_sec_kcache_system_time_ms}}/sec<br/>{{ MsFormat$value.per_call_kcache_system_time_ms}}/call<br/>{{ NumFormat$value.ratio_kcache_system_time_ms 2}}% |
| 31 | +{{ end}}{{/* range */}} |
| 32 | +{{else}}{{/*if .host.master*/}} |
| 33 | +No data |
| 34 | +{{ end}}{{/*if .host.master*/}} |
| 35 | + |
| 36 | +{{ifgt (len .hosts.replicas) 0}} |
| 37 | +### Replica servers: ### |
| 38 | +{{ range$key,$host := .hosts.replicas}} |
| 39 | +#### Replica (`{{$host}}`) #### |
| 40 | +{{if (index $.results$host)}} |
| 41 | +Start:{{ (index (index (index $.results$host)"data")"start_timestamptz")}} |
| 42 | +End:{{ (index (index (index $.results$host)"data")"end_timestamptz")}} |
| 43 | +Period seconds:{{ (index (index (index $.results$host)"data")"period_seconds")}} |
| 44 | +Period age:{{ (index (index (index $.results$host)"data")"period_age")}} |
| 45 | + |
| 46 | +Calls | Total time | Rows | shared_blks_hit | shared_blks_read | shared_blks_dirtied | shared_blks_written | blk_read_time | blk_write_time | kcache_reads | kcache_writes | kcache_user_time_ms | kcache_system_time |
| 47 | +-------|------------|------|-----------------|------------------|---------------------|---------------------|---------------|----------------|--------------|---------------|---------------------|-------------------- |
| 48 | +{{ range$i,$key := (index (index (index (index $.results$host)"data")"aggregated")"_keys")}} |
| 49 | +{{-$value := (index (index (index (index $.results$host)"data")"aggregated")$key) -}} |
| 50 | +{{- NumFormat$value.diff_calls 2}}<br/>{{ NumFormat$value.per_sec_calls 2}}/sec<br/>{{ NumFormat$value.per_call_calls 2}}/call<br/>{{ NumFormat$value.ratio_calls 2}}% | |
| 51 | +{{- MsFormat$value.diff_total_time}}<br/>{{ MsFormat$value.per_sec_total_time}}/sec<br/>{{ MsFormat$value.per_call_total_time}}/call<br/>{{ NumFormat$value.ratio_total_time 2}}% | |
| 52 | +{{- NumFormat$value.diff_rows 2}}<br/>{{ NumFormat$value.per_sec_rows 2}}/sec<br/>{{ NumFormat$value.per_call_rows 2}}/call<br/>{{ NumFormat$value.ratio_rows 2}}% | |
| 53 | +{{- NumFormat$value.diff_shared_blks_hit 2}} blks<br/>{{ NumFormat$value.per_sec_shared_blks_hit 2}} blks/sec<br/>{{ NumFormat$value.per_call_shared_blks_hit 2}} blks/call<br/>{{ NumFormat$value.ratio_shared_blks_hit 2}}% | |
| 54 | +{{- NumFormat$value.diff_shared_blks_read 2}} blks<br/>{{ NumFormat$value.per_sec_shared_blks_read 2}} blks/sec<br/>{{ NumFormat$value.per_call_shared_blks_read 2}} blks/call<br/>{{ NumFormat$value.ratio_shared_blks_read 2}}% | |
| 55 | +{{- NumFormat$value.diff_shared_blks_dirtied 2}} blks<br/>{{ NumFormat$value.per_sec_shared_blks_dirtied 2}} blks/sec<br/>{{ NumFormat$value.per_call_shared_blks_dirtied 2}} blks/call<br/>{{ NumFormat$value.ratio_shared_blks_dirtied 2}}% | |
| 56 | +{{- NumFormat$value.diff_shared_blks_written 2}} blks<br/>{{ NumFormat$value.per_sec_shared_blks_written 2}} blks/sec<br/>{{ NumFormat$value.per_call_shared_blks_written 2}} blks/call<br/>{{ NumFormat$value.ratio_shared_blks_written 2}}% | |
| 57 | +{{- MsFormat$value.diff_blk_read_time}}<br/>{{ MsFormat$value.per_sec_blk_read_time}}/sec<br/>{{ MsFormat$value.per_call_blk_read_time}}/call<br/>{{ NumFormat$value.ratio_blk_read_time 2}}% | |
| 58 | +{{- MsFormat$value.diff_blk_write_time}}<br/>{{ MsFormat$value.per_sec_blk_write_time}}/sec<br/>{{ MsFormat$value.per_call_blk_write_time}}/call<br/>{{ MsFormat$value.per_call_blk_write_time}}/call<br/>{{ NumFormat$value.ratio_blk_write_time 2}}% | |
| 59 | +{{- NumFormat$value.diff_kcache_reads 2}} bytes<br/>{{ NumFormat$value.per_sec_kcache_reads 2}} bytes/sec<br/>{{ NumFormat$value.per_call_kcache_reads 2}} bytes/call<br/>{{ NumFormat$value.ratio_kcache_reads 2}}% | |
| 60 | +{{- NumFormat$value.diff_kcache_writes 2}} bytes<br/>{{ NumFormat$value.per_sec_kcache_writes 2}} bytes/sec<br/>{{ NumFormat$value.per_call_kcache_writes 2}} bytes/call<br/>{{ NumFormat$value.ratio_kcache_writes 2}}% | |
| 61 | +{{- MsFormat$value.diff_kcache_user_time_ms}}<br/>{{ MsFormat$value.per_sec_kcache_user_time_ms}}/sec<br/>{{ MsFormat$value.per_call_kcache_user_time_ms}}/call<br/>{{ NumFormat$value.ratio_kcache_user_time_ms 2}}% | |
| 62 | +{{- MsFormat$value.diff_kcache_system_time_ms}}<br/>{{ MsFormat$value.per_sec_kcache_system_time_ms}}/sec<br/>{{ MsFormat$value.per_call_kcache_system_time_ms}}/call<br/>{{ NumFormat$value.ratio_kcache_system_time_ms 2}}% |
| 63 | +{{ end}}{{/* range */}} |
| 64 | +{{-else -}}{{/*if host data */}} |
| 65 | +No data |
| 66 | +{{- end -}}{{/*if host data */}} |
| 67 | +{{- end -}}{{/* hosts range */}} |
| 68 | +{{- end -}}{{/*if replicas */}} |
| 69 | + |
| 70 | +## Conclusions ## |
| 71 | + |
| 72 | + |
| 73 | +## Recommendations ## |
| 74 | + |