Sha256: f4e8e51fcc2d36d538576e37d02f2317f3404806f9194c6884e11cc7d0d22b71

Contents?: true

Size: 1.53 KB

Versions: 14

Compression:

Stored size: 1.53 KB

Contents

<div class="content">
  <p id="periods">
    <% @periods.each do |name, options| %>
      <%= link_to name, system_path(options) %>
    <% end %>
  </p>
  <% path_options = {duration: @duration, period: @period} %>

  <h1>CPU</h1>
  <div id="chart-1" class="chart" style="margin-bottom: 20px;">Loading...</div>
  <script>
    new Chartkick.LineChart("chart-1", <%= json_escape(cpu_usage_path(path_options).to_json).html_safe %>, {max: 100, colors: ["#5bc0de"], suffix: "%", library: {tooltips: {intersect: false, mode: "index"}}})
  </script>

  <h1>Load</h1>
  <div id="chart-2" class="chart" style="margin-bottom: 20px;">Loading...</div>
  <script>
    new Chartkick.LineChart("chart-2", <%= json_escape(load_stats_path(path_options).to_json).html_safe %>, {colors: ["#5bc0de", "#d9534f"], library: {tooltips: {intersect: false, mode: "nearest"}}})
  </script>

  <h1>Connections</h1>
  <div id="chart-3" class="chart" style="margin-bottom: 20px;">Loading...</div>
  <script>
    new Chartkick.LineChart("chart-3", <%= json_escape(connection_stats_path(path_options).to_json).html_safe %>, {colors: ["#5bc0de"], library: {tooltips: {intersect: false, mode: "index"}}})
  </script>

  <% if @database.replica? %>
    <h1>Replication Lag</h1>
    <div id="chart-4" class="chart" style="margin-bottom: 20px;">Loading...</div>
    <script>
      new Chartkick.LineChart("chart-4", <%= json_escape(replication_lag_stats_path(path_options).to_json).html_safe %>, {colors: ["#5bc0de"], library: {tooltips: {intersect: false, mode: "index"}}})
    </script>
  <% end %>
</div>

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
pghero-2.8.1 app/views/pg_hero/home/system.html.erb
pghero-2.8.0 app/views/pg_hero/home/system.html.erb
pghero-2.7.4 app/views/pg_hero/home/system.html.erb
pghero_fork-2.7.3 app/views/pg_hero/home/system.html.erb
pghero-2.7.3 app/views/pg_hero/home/system.html.erb
pghero-2.7.2 app/views/pg_hero/home/system.html.erb
pghero-2.7.1 app/views/pg_hero/home/system.html.erb
pghero-2.7.0 app/views/pg_hero/home/system.html.erb
pghero-2.6.0 app/views/pg_hero/home/system.html.erb
pghero-2.5.1 app/views/pg_hero/home/system.html.erb
pghero-2.5.0 app/views/pg_hero/home/system.html.erb
pghero-2.4.2 app/views/pg_hero/home/system.html.erb
pghero-2.4.1 app/views/pg_hero/home/system.html.erb
pghero-2.4.0 app/views/pg_hero/home/system.html.erb