Browse Source

Documented unit used for memory usage check

main
Artemis 2 years ago
parent
commit
8c55c5e184
  1. 4
      README.md
  2. 4
      exporter/exporter.go

4
README.md

@ -101,7 +101,7 @@ Paste (since [`v2.0.0`][v2.0.0]) comes with built-in support for Prometheus stat
The following stats are available.
- `paste_count` (constant): Number of pastes currently stored
- `paste_total_paste_size` (constant): The total memory used by paste storing
- `paste_average_paste_size` (constant): The average memory used by pastes
- `paste_total_paste_size` (constant): The total memory used by paste storing (in bytes)
- `paste_average_paste_size` (constant): The average memory used by pastes (in bytes)
[v2.0.0]: https://gitlab.com/Artemix/paste/tree/v2.0.0

4
exporter/exporter.go

@ -55,13 +55,13 @@ var (
totalSize = prometheus.NewDesc(
prometheus.BuildFQName(namespace, "", "total_paste_size"),
"Total size (counting every paste)", // TODO document unit
"Total size (counting every paste) in bytes",
nil, nil,
)
averageSize = prometheus.NewDesc(
prometheus.BuildFQName(namespace, "", "average_paste_size"),
"Average size (counting every paste)", // TODO document unit
"Average size (counting every paste) in bytes",
nil, nil,
)
)

Loading…
Cancel
Save