Add the following: * Container name, machine name, worker id. * Container uptime, puma uptime, worker uptime. * Number of requests processed by current worker. * ExifTool version. Also change /status page to show information in tables instead of lists.
58 lines
1.5 KiB
Plaintext
58 lines
1.5 KiB
Plaintext
<div id="c-status">
|
|
<div id="a-show" class="fixed-width-container">
|
|
<h1>Status</h1>
|
|
|
|
<h2>Instance</h1>
|
|
|
|
<details>
|
|
<summary>
|
|
Running
|
|
<% if @status.danbooru_version.present? && Danbooru.config.source_code_url.present? %>
|
|
<%= external_link_to "#{Danbooru.config.source_code_url}/commits/#{@status.danbooru_version}", @status.danbooru_version.first(7) %>
|
|
<% end %>
|
|
on <%= @status.instance_name %>
|
|
for <%= @status.instance_uptime %>
|
|
</summary>
|
|
<%= render "list", hash: @status.serializable_hash[:instance] %>
|
|
</details>
|
|
|
|
<h2>Server</h1>
|
|
|
|
<details>
|
|
<summary>
|
|
Server: <%= @status.node_name %>
|
|
</summary>
|
|
<%= render "list", hash: @status.serializable_hash[:server] %>
|
|
</details>
|
|
|
|
<h2>Postgres</h2>
|
|
|
|
<details>
|
|
<summary>
|
|
<%= pluralize @status.postgres_active_connections, "active connection" %>.
|
|
</summary>
|
|
|
|
<%= render "table", rows: @status.serializable_hash[:postgres][:connection_stats] %>
|
|
</details>
|
|
|
|
<h2>Redis</h2>
|
|
|
|
<details>
|
|
<summary>
|
|
<%= @status.redis_used_memory %> memory used.
|
|
</summary>
|
|
|
|
<%= render "list", hash: @status.serializable_hash[:redis][:info] %>
|
|
</details>
|
|
|
|
<h2>Request</h2>
|
|
|
|
<details>
|
|
<summary>
|
|
IP: <%= @status.request.remote_ip %>
|
|
</summary>
|
|
<%= render "list", hash: @status.serializable_hash[:headers] %>
|
|
</details>
|
|
</div>
|
|
</div>
|