github.com/grafana/pyroscope@v1.18.0/pkg/storegateway/blocks.gohtml (about)

     1  {{- /*gotype: github.com/grafana/pyroscope/pkg/storegateway.blocksPageContents*/ -}}
     2  <!DOCTYPE html>
     3  <html xmlns="http://www.w3.org/1999/html" data-bs-theme="dark">
     4  <head>
     5      <meta charset="UTF-8">
     6      <title>Store-gateway: bucket tenant blocks</title>
     7  </head>
     8  <body>
     9  <h1>Store-gateway: bucket tenant blocks</h1>
    10  <p>Current time: {{ .Now }}</p>
    11  <p>Showing blocks for tenant: <strong>{{ .Tenant }}</strong></p>
    12  <p>
    13      <form>
    14          <input type="checkbox" id="show-deleted" name="show_deleted" {{ if .ShowDeleted }} checked {{ end }}>&nbsp;<label for="show-deleted">Show Deleted</label> &nbsp;&nbsp;
    15          <input type="checkbox" id="show-sources" name="show_sources" {{ if .ShowSources }} checked {{ end }}>&nbsp;<label for="show-sources">Show Sources</label> &nbsp;&nbsp;
    16          <input type="checkbox" id="show-parents" name="show_parents" {{ if .ShowParents }} checked {{ end }}>&nbsp;<label for="show-parents">Show Parents</label> &nbsp;&nbsp;
    17          <label for="split-count">Split count (non-zero value shows block split ID):</label>&nbsp;<input id="split-count" name="split_count" type="text" value="{{ .SplitCount }}" style="width: 6em;" />
    18          <button type="submit" style="background-color: lightgrey;">
    19              <span style="padding: 0.5em 1em; font-size: 125%;">Reload</span>
    20          </button>
    21      </form>
    22  </p>
    23  <table border="1" cellpadding="5" style="border-collapse: collapse">
    24      <thead>
    25      <tr>
    26          <th>Block ID</th>
    27          {{ if gt .SplitCount 0 }}
    28          <th>Split ID</th>{{ end }}
    29          <th>ULID Time</th>
    30          <th>Min Time</th>
    31          <th>Max Time</th>
    32          <th>Duration</th>
    33          {{ if .ShowDeleted }}
    34          <th>Deletion Time</th>{{ end }}
    35          <th>Lvl</th>
    36          <th>Size</th>
    37          <th>Series</th>
    38          <th>Samples</th>
    39          <th>Profiles</th>
    40          <th>Labels</th>
    41          {{ if .ShowSources }}
    42          <th>Sources</th>{{ end }}
    43          {{ if .ShowParents }}
    44          <th>Parents</th>{{ end }}
    45      </tr>
    46      </thead>
    47      <tbody style="font-family: monospace;">
    48      {{ $page := . }}
    49      {{ range .FormattedBlocks }}
    50          <tr>
    51              <td>{{ .ULID }}</td>
    52              {{ if gt $page.SplitCount 0 }}
    53              <td>{{ .SplitID }}</td>{{ end }}
    54              <td>{{ .ULIDTime }}</td>
    55              <td>{{ .MinTime }}</td>
    56              <td>{{ .MaxTime }}</td>
    57              <td>{{ .Duration }}</td>
    58              {{ if $page.ShowDeleted }}
    59              <td>{{ .DeletedTime }}</td>{{ end }}
    60              <td>{{ .CompactionLevel }}</td>
    61              <td>{{ .BlockSize }}</td>
    62              <td>{{ .Stats.NumSeries }}</td>
    63              <td>{{ .Stats.NumSamples }}</td>
    64              <td>{{ .Stats.NumProfiles }}</td>
    65              <td>{{ .Labels }}</td>
    66              {{ if $page.ShowSources }}
    67                  <td>
    68                      {{ range $i, $source := .Sources }}
    69                          {{ if $i }}<br>{{ end }}
    70                          {{ . }}
    71                      {{ end }}
    72                  </td>
    73              {{ end }}
    74              {{ if $page.ShowParents }}
    75                  <td>
    76                      {{ range $i, $source := .Parents }}
    77                          {{ if $i }}<br>{{ end }}
    78                          {{ . }}
    79                      {{ end }}
    80                  </td>
    81              {{ end }}
    82          </tr>
    83      {{ end }}
    84      </tbody>
    85  </table>
    86  </body>
    87  </html>