Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
kickster97 committed Feb 1, 2024
1 parent 63c5168 commit 754968e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/lavinmq/http/controller/prometheus.cr
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ module LavinMQ
end
writer = PrometheusWriter.new(io, "telemetry")
writer.write({name: "scrape_duration_seconds",
type: "counter",
type: "counter",
value: elapsed.total_seconds,
help: "Duration for metrics collection in seconds"})
writer.write({name: "scrape_mem",
type: "gauge",
type: "gauge",
value: mem,
help: "Memory used for metrics collections in bytes"})
end
Expand Down Expand Up @@ -162,11 +162,11 @@ module LavinMQ
type: "gauge",
help: "Open TCP sockets"})
writer.write({name: "process_resident_memory_bytes",
type: "gauge",
type: "gauge",
value: @amqp_server.rss,
help: "Memory used in bytes"})
writer.write({name: "disk_space_available_bytes",
type: "gauge",
type: "gauge",
value: @amqp_server.disk_free,
help: "Disk space available in bytes"})
writer.write({name: "process_max_fds",
Expand Down Expand Up @@ -236,10 +236,10 @@ module LavinMQ
value: @amqp_server.user_time,
type: "counter",
help: "Total CPU user time"})
writer.write({name: "rss_bytes",
type: "gauge",
writer.write({name: "rss_bytes",
type: "gauge",
value: @amqp_server.rss,
help: "Memory RSS in bytes"})
help: "Memory RSS in bytes"})
writer.write({name: "stats_collection_duration_seconds_total",
value: @amqp_server.stats_collection_duration_seconds_total.to_f,
type: "gauge",
Expand Down

0 comments on commit 754968e

Please sign in to comment.