2017-08-16 10:31:44 -04:00
|
|
|
{{ template "head" . }}
|
|
|
|
|
|
|
|
{{ template "prom_content_head" . }}
|
|
|
|
<h1>System Resources</h1>
|
|
|
|
|
|
|
|
<h3>CPU</h3>
|
|
|
|
<div id="process_resource_utime"></div>
|
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
|
|
|
node: document.querySelector("#process_resource_utime"),
|
|
|
|
expr: "rate(process_cpu_seconds_total[2m]) * 100",
|
2020-11-26 12:41:20 -05:00
|
|
|
name: "[[job]]-[[index]]",
|
2017-08-16 10:31:44 -04:00
|
|
|
min: 0,
|
|
|
|
max: 100,
|
|
|
|
renderer: "line",
|
|
|
|
height: 150,
|
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yUnits: "%",
|
|
|
|
yTitle: "CPU Usage"
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<h3>Memory</h3>
|
2020-11-26 12:41:20 -05:00
|
|
|
<div id="process_resident_memory_bytes"></div>
|
2017-08-16 10:31:44 -04:00
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
2020-11-26 12:41:20 -05:00
|
|
|
node: document.querySelector("#process_resident_memory_bytes"),
|
|
|
|
expr: "process_resident_memory_bytes",
|
|
|
|
name: "[[job]]-[[index]]",
|
2017-08-16 10:31:44 -04:00
|
|
|
min: 0,
|
|
|
|
renderer: "line",
|
|
|
|
height: 150,
|
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix,
|
|
|
|
yUnits: "bytes",
|
|
|
|
yTitle: "Usage"
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<h3>File descriptors</h3>
|
|
|
|
<div id="process_fds"></div>
|
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
|
|
|
node: document.querySelector("#process_fds"),
|
2020-11-26 12:41:20 -05:00
|
|
|
expr: "process_open_fds",
|
|
|
|
name: "[[job]]-[[index]]",
|
2017-08-16 10:31:44 -04:00
|
|
|
min: 0,
|
|
|
|
renderer: "line",
|
|
|
|
height: 150,
|
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yUnits: "",
|
|
|
|
yTitle: "Descriptors"
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<h1>Reactor</h1>
|
|
|
|
|
|
|
|
<h3>Total reactor time</h3>
|
|
|
|
<div id="reactor_total_time"></div>
|
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
|
|
|
node: document.querySelector("#reactor_total_time"),
|
2020-11-26 12:41:20 -05:00
|
|
|
expr: "rate(python_twisted_reactor_tick_time_sum[2m])",
|
|
|
|
name: "[[job]]-[[index]]",
|
2017-08-16 10:31:44 -04:00
|
|
|
max: 1,
|
|
|
|
min: 0,
|
|
|
|
renderer: "area",
|
|
|
|
height: 150,
|
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yUnits: "s/s",
|
|
|
|
yTitle: "Usage"
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<h3>Average reactor tick time</h3>
|
|
|
|
<div id="reactor_average_time"></div>
|
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
|
|
|
node: document.querySelector("#reactor_average_time"),
|
2020-11-26 12:41:20 -05:00
|
|
|
expr: "rate(python_twisted_reactor_tick_time_sum[2m]) / rate(python_twisted_reactor_tick_time_count[2m])",
|
|
|
|
name: "[[job]]-[[index]]",
|
2017-08-16 10:31:44 -04:00
|
|
|
min: 0,
|
|
|
|
renderer: "line",
|
|
|
|
height: 150,
|
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yUnits: "s",
|
|
|
|
yTitle: "Time"
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<h1>Storage</h1>
|
|
|
|
|
|
|
|
<h3>Queries</h3>
|
|
|
|
<div id="synapse_storage_query_time"></div>
|
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
|
|
|
node: document.querySelector("#synapse_storage_query_time"),
|
2020-11-26 12:41:20 -05:00
|
|
|
expr: "sum(rate(synapse_storage_query_time_count[2m])) by (verb)",
|
2017-08-16 10:31:44 -04:00
|
|
|
name: "[[verb]]",
|
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix,
|
|
|
|
yUnits: "queries/s",
|
|
|
|
yTitle: "Queries"
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<h3>Transactions</h3>
|
|
|
|
<div id="synapse_storage_transaction_time"></div>
|
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
|
|
|
node: document.querySelector("#synapse_storage_transaction_time"),
|
2020-11-26 12:41:20 -05:00
|
|
|
expr: "topk(10, rate(synapse_storage_transaction_time_count[2m]))",
|
|
|
|
name: "[[job]]-[[index]] [[desc]]",
|
2017-08-16 10:31:44 -04:00
|
|
|
min: 0,
|
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix,
|
|
|
|
yUnits: "txn/s",
|
|
|
|
yTitle: "Transactions"
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<h3>Transaction execution time</h3>
|
2020-11-26 12:41:20 -05:00
|
|
|
<div id="synapse_storage_transactions_time_sec"></div>
|
2017-08-16 10:31:44 -04:00
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
2020-11-26 12:41:20 -05:00
|
|
|
node: document.querySelector("#synapse_storage_transactions_time_sec"),
|
|
|
|
expr: "rate(synapse_storage_transaction_time_sum[2m])",
|
|
|
|
name: "[[job]]-[[index]] [[desc]]",
|
2017-08-16 10:31:44 -04:00
|
|
|
min: 0,
|
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yUnits: "s/s",
|
|
|
|
yTitle: "Usage"
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
2020-11-26 12:41:20 -05:00
|
|
|
<h3>Average time waiting for database connection</h3>
|
|
|
|
<div id="synapse_storage_avg_waiting_time"></div>
|
2017-08-16 10:31:44 -04:00
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
2020-11-26 12:41:20 -05:00
|
|
|
node: document.querySelector("#synapse_storage_avg_waiting_time"),
|
|
|
|
expr: "rate(synapse_storage_schedule_time_sum[2m]) / rate(synapse_storage_schedule_time_count[2m])",
|
|
|
|
name: "[[job]]-[[index]]",
|
2017-08-16 10:31:44 -04:00
|
|
|
min: 0,
|
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanize,
|
2020-11-26 12:41:20 -05:00
|
|
|
yUnits: "s",
|
|
|
|
yTitle: "Time"
|
2017-08-16 10:31:44 -04:00
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
2020-11-26 12:41:20 -05:00
|
|
|
<h3>Cache request rate</h3>
|
|
|
|
<div id="synapse_cache_request_rate"></div>
|
2017-08-16 10:31:44 -04:00
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
2020-11-26 12:41:20 -05:00
|
|
|
node: document.querySelector("#synapse_cache_request_rate"),
|
|
|
|
expr: "rate(synapse_util_caches_cache:total[2m])",
|
|
|
|
name: "[[job]]-[[index]] [[name]]",
|
2017-08-16 10:31:44 -04:00
|
|
|
min: 0,
|
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix,
|
2020-11-26 12:41:20 -05:00
|
|
|
yUnits: "rps",
|
|
|
|
yTitle: "Cache request rate"
|
2017-08-16 10:31:44 -04:00
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<h3>Cache size</h3>
|
|
|
|
<div id="synapse_cache_size"></div>
|
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
|
|
|
node: document.querySelector("#synapse_cache_size"),
|
|
|
|
expr: "synapse_util_caches_cache:size",
|
2020-11-26 12:41:20 -05:00
|
|
|
name: "[[job]]-[[index]] [[name]]",
|
2017-08-16 10:31:44 -04:00
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix,
|
|
|
|
yUnits: "",
|
|
|
|
yTitle: "Items"
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<h1>Requests</h1>
|
|
|
|
|
|
|
|
<h3>Requests by Servlet</h3>
|
2018-04-05 11:26:21 -04:00
|
|
|
<div id="synapse_http_server_request_count_servlet"></div>
|
2017-08-16 10:31:44 -04:00
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
2018-04-05 11:26:21 -04:00
|
|
|
node: document.querySelector("#synapse_http_server_request_count_servlet"),
|
2020-11-26 12:41:20 -05:00
|
|
|
expr: "rate(synapse_http_server_in_flight_requests_count[2m])",
|
|
|
|
name: "[[job]]-[[index]] [[method]] [[servlet]]",
|
2017-08-16 10:31:44 -04:00
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yUnits: "req/s",
|
|
|
|
yTitle: "Requests"
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
<h4> (without <tt>EventStreamRestServlet</tt> or <tt>SyncRestServlet</tt>)</h4>
|
2018-04-05 11:26:21 -04:00
|
|
|
<div id="synapse_http_server_request_count_servlet_minus_events"></div>
|
2017-08-16 10:31:44 -04:00
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
2018-04-05 11:26:21 -04:00
|
|
|
node: document.querySelector("#synapse_http_server_request_count_servlet_minus_events"),
|
2020-11-26 12:41:20 -05:00
|
|
|
expr: "rate(synapse_http_server_in_flight_requests_count{servlet!=\"EventStreamRestServlet\", servlet!=\"SyncRestServlet\"}[2m])",
|
|
|
|
name: "[[job]]-[[index]] [[method]] [[servlet]]",
|
2017-08-16 10:31:44 -04:00
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yUnits: "req/s",
|
|
|
|
yTitle: "Requests"
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<h3>Average response times</h3>
|
|
|
|
<div id="synapse_http_server_response_time_avg"></div>
|
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
|
|
|
node: document.querySelector("#synapse_http_server_response_time_avg"),
|
2020-11-26 12:41:20 -05:00
|
|
|
expr: "rate(synapse_http_server_response_time_seconds_sum[2m]) / rate(synapse_http_server_response_count[2m])",
|
|
|
|
name: "[[job]]-[[index]] [[servlet]]",
|
2017-08-16 10:31:44 -04:00
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yUnits: "s/req",
|
|
|
|
yTitle: "Response time"
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<h3>All responses by code</h3>
|
|
|
|
<div id="synapse_http_server_responses"></div>
|
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
|
|
|
node: document.querySelector("#synapse_http_server_responses"),
|
|
|
|
expr: "rate(synapse_http_server_responses[2m])",
|
|
|
|
name: "[[method]] / [[code]]",
|
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yUnits: "req/s",
|
|
|
|
yTitle: "Requests"
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<h3>Error responses by code</h3>
|
|
|
|
<div id="synapse_http_server_responses_err"></div>
|
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
|
|
|
node: document.querySelector("#synapse_http_server_responses_err"),
|
|
|
|
expr: "rate(synapse_http_server_responses{code=~\"[45]..\"}[2m])",
|
|
|
|
name: "[[method]] / [[code]]",
|
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yUnits: "req/s",
|
|
|
|
yTitle: "Requests"
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<h3>CPU Usage</h3>
|
|
|
|
<div id="synapse_http_server_response_ru_utime"></div>
|
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
|
|
|
node: document.querySelector("#synapse_http_server_response_ru_utime"),
|
2018-04-05 11:26:21 -04:00
|
|
|
expr: "rate(synapse_http_server_response_ru_utime_seconds[2m])",
|
2020-11-26 12:41:20 -05:00
|
|
|
name: "[[job]]-[[index]] [[servlet]]",
|
2017-08-16 10:31:44 -04:00
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yUnits: "s/s",
|
|
|
|
yTitle: "CPU Usage"
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<h3>DB Usage</h3>
|
|
|
|
<div id="synapse_http_server_response_db_txn_duration"></div>
|
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
|
|
|
node: document.querySelector("#synapse_http_server_response_db_txn_duration"),
|
2018-04-05 11:26:21 -04:00
|
|
|
expr: "rate(synapse_http_server_response_db_txn_duration_seconds[2m])",
|
2020-11-26 12:41:20 -05:00
|
|
|
name: "[[job]]-[[index]] [[servlet]]",
|
2017-08-16 10:31:44 -04:00
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yUnits: "s/s",
|
|
|
|
yTitle: "DB Usage"
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<h3>Average event send times</h3>
|
|
|
|
<div id="synapse_http_server_send_time_avg"></div>
|
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
|
|
|
node: document.querySelector("#synapse_http_server_send_time_avg"),
|
2020-11-26 12:41:20 -05:00
|
|
|
expr: "rate(synapse_http_server_response_time_seconds_sum{servlet='RoomSendEventRestServlet'}[2m]) / rate(synapse_http_server_response_count{servlet='RoomSendEventRestServlet'}[2m])",
|
|
|
|
name: "[[job]]-[[index]] [[servlet]]",
|
2017-08-16 10:31:44 -04:00
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yUnits: "s/req",
|
|
|
|
yTitle: "Response time"
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<h1>Federation</h1>
|
|
|
|
|
|
|
|
<h3>Sent Messages</h3>
|
|
|
|
<div id="synapse_federation_client_sent"></div>
|
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
|
|
|
node: document.querySelector("#synapse_federation_client_sent"),
|
|
|
|
expr: "rate(synapse_federation_client_sent[2m])",
|
2020-11-26 12:41:20 -05:00
|
|
|
name: "[[job]]-[[index]] [[type]]",
|
2017-08-16 10:31:44 -04:00
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yUnits: "req/s",
|
|
|
|
yTitle: "Requests"
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<h3>Received Messages</h3>
|
|
|
|
<div id="synapse_federation_server_received"></div>
|
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
|
|
|
node: document.querySelector("#synapse_federation_server_received"),
|
|
|
|
expr: "rate(synapse_federation_server_received[2m])",
|
2020-11-26 12:41:20 -05:00
|
|
|
name: "[[job]]-[[index]] [[type]]",
|
2017-08-16 10:31:44 -04:00
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yUnits: "req/s",
|
|
|
|
yTitle: "Requests"
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<h3>Pending</h3>
|
|
|
|
<div id="synapse_federation_transaction_queue_pending"></div>
|
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
|
|
|
node: document.querySelector("#synapse_federation_transaction_queue_pending"),
|
|
|
|
expr: "synapse_federation_transaction_queue_pending",
|
|
|
|
name: "[[type]]",
|
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix,
|
|
|
|
yUnits: "",
|
|
|
|
yTitle: "Units"
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<h1>Clients</h1>
|
|
|
|
|
|
|
|
<h3>Notifiers</h3>
|
|
|
|
<div id="synapse_notifier_listeners"></div>
|
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
|
|
|
node: document.querySelector("#synapse_notifier_listeners"),
|
|
|
|
expr: "synapse_notifier_listeners",
|
2020-11-26 12:41:20 -05:00
|
|
|
name: "[[job]]-[[index]]",
|
2017-08-16 10:31:44 -04:00
|
|
|
min: 0,
|
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanizeNoSmallPrefix,
|
|
|
|
yUnits: "",
|
|
|
|
yTitle: "Listeners"
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<h3>Notified Events</h3>
|
|
|
|
<div id="synapse_notifier_notified_events"></div>
|
|
|
|
<script>
|
|
|
|
new PromConsole.Graph({
|
|
|
|
node: document.querySelector("#synapse_notifier_notified_events"),
|
|
|
|
expr: "rate(synapse_notifier_notified_events[2m])",
|
2020-11-26 12:41:20 -05:00
|
|
|
name: "[[job]]-[[index]]",
|
2017-08-16 10:31:44 -04:00
|
|
|
yAxisFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yHoverFormatter: PromConsole.NumberFormatter.humanize,
|
|
|
|
yUnits: "events/s",
|
|
|
|
yTitle: "Event rate"
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{{ template "prom_content_tail" . }}
|
|
|
|
|
|
|
|
{{ template "tail" }}
|