Skip to content
Closed
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: 1 addition & 1 deletion APIDOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ Response data is in Prometheus text format with `Content-Type: text/plain; versi
# TYPE uptime_seconds gauge
uptime_seconds 264
# HELP start_time Start time of the DNS Server since epoch (milliseconds)
# TYPE start_time guage
# TYPE start_time gauge
start_time 1776773647619
# TYPE total_queries counter
total_queries 0
Expand Down
2 changes: 1 addition & 1 deletion DnsServerCore/WebServiceDashboardApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public ValueTask GetMetricsText(HttpContext context)
sb.Append($"uptime_seconds {Convert.ToUInt64((DateTime.UtcNow - _dnsWebService._uptimestamp).TotalSeconds)}\n");

sb.Append("# HELP start_time Start time of the DNS Server since epoch (milliseconds)\n");
sb.Append("# TYPE start_time guage\n");
sb.Append("# TYPE start_time gauge\n");
sb.Append($"start_time {Convert.ToUInt64((_dnsWebService._uptimestamp - DateTime.UnixEpoch).TotalMilliseconds)}\n");

sb.Append("# TYPE total_queries counter\n");
Expand Down