Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add message rates to /exchanges #929

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions static/js/exchanges.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ const exchangeTable = Table.renderTable('table', tableOptions, function (tr, ite
policyLink.textContent = item.policy
}
Table.renderCell(tr, 4, policyLink, 'center')
Table.renderCell(tr, 5, item.message_stats.publish_in_details.rate, 'center')
Table.renderCell(tr, 6, item.message_stats.publish_out_details.rate, 'center')
})

document.querySelector('#addExchange').addEventListener('submit', function (evt) {
Expand Down
8 changes: 5 additions & 3 deletions views/exchanges.ecr
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
<th data-sort-key="type" class="left">Type</th>
<th>Features</th>
<th data-sort-key="policy">Policy</th>
<th data-sort-key="publish_in">Message rate in</th>
<th data-sort-key="publish_out">Message rate out</th>
</tr>
</thead>
<tbody></tbody>
Expand Down Expand Up @@ -87,13 +89,13 @@
</a>
<a class="arg-tooltip" data-tag="x-message-deduplication" data-value="true">Message deduplication
<span class="tooltiptext">Enable deduplication for this exchange</span>
</a> |
</a> |
<a class="arg-tooltip" data-tag="x-cache-size" data-value="100">Deduplication cache size
<span class="tooltiptext">Deduplication cache size, in number of entries</span>
</a> |
</a> |
<a class="arg-tooltip" data-tag="x-cache-ttl" data-value="1000">Deduplication cache ttl
<span class="tooltiptext">How long an entry lives in the deduplication cache, in milliseconds</span>
</a> |
</a> |
<a class="arg-tooltip" data-tag="x-deduplication-header">Deduplication header
<span class="tooltiptext">Which header to check for deduplication, defaults to x-deduplication-header</span>
</a>
Expand Down
Loading