Skip to content

Commit

Permalink
Display description using a monospaced font
Browse files Browse the repository at this point in the history
Some metrics can contain multiple lines of output generated by a CLI
program that aligned information for bettear readibility (e.g. ps(1)
output of the cpu metric from riemann-health).

Swicth to a PRE tag to display this content preserving spacing.
  • Loading branch information
smortex committed Oct 28, 2022
1 parent 3987fd9 commit 81d5d4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/riemann/dash/public/eventPane.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var eventPane = (function() {
'<span class="ttl">{{-ttl}}</span>' +
'<span class="tags">{{-tags}}</span>' +
'</div>' +
'<div class="description">{{-description}}</div>');
'<pre class="description">{{-description}}</pre>');

var rowTemplate =
_.template("<tr><td>{{-field}}</td><td>{{-value}}</td></tr>");
Expand Down
1 change: 1 addition & 0 deletions lib/riemann/dash/views/css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ html,table {
float: left;
clear: both;
white-space: pre-wrap;
margin: 3px;
}
}

Expand Down

0 comments on commit 81d5d4d

Please sign in to comment.