aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorpg9182 <96569817+pg9182@users.noreply.github.com>2022-10-21 06:40:35 -0400
committerpg9182 <96569817+pg9182@users.noreply.github.com>2022-10-21 06:40:35 -0400
commitb59edbe7bd52227089e949383f986f7e058dbb23 (patch)
treeb51586bbf04c6b65b0e8647c8f8c65e3af7de8de /pkg
parenteca0a756c7eccb83e7efb6f6c8a1b4ca1e477a79 (diff)
downloadAtlas-b59edbe7bd52227089e949383f986f7e058dbb23.tar.gz
Atlas-b59edbe7bd52227089e949383f986f7e058dbb23.zip
pkg/api/api0: Fix metrics syntax for _other values
Diffstat (limited to 'pkg')
-rw-r--r--pkg/api/api0/serverlist.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/api/api0/serverlist.go b/pkg/api/api0/serverlist.go
index 73837ba..67e6db0 100644
--- a/pkg/api/api0/serverlist.go
+++ b/pkg/api/api0/serverlist.go
@@ -430,7 +430,7 @@ func (s *ServerList) GetMetrics() []byte {
// write metrics
var b bytes.Buffer
- b.WriteString(`atlas_api0sl_map_info{map="_other",map_title="Other"}`)
+ b.WriteString(`atlas_api0sl_map_info{map="_other",map_title="Other"} 1`)
b.WriteByte('\n')
for _, m := range nstypes.Maps() {
b.WriteString(`atlas_api0sl_map_info{map="`)
@@ -443,7 +443,7 @@ func (s *ServerList) GetMetrics() []byte {
}
b.WriteByte('\n')
- b.WriteString(`atlas_api0sl_playlist_info{playlist="_other",playlist_title="Other"}`)
+ b.WriteString(`atlas_api0sl_playlist_info{playlist="_other",playlist_title="Other"} 1`)
b.WriteByte('\n')
for _, pl := range nstypes.Playlists() {
b.WriteString(`atlas_api0sl_playlist_info{playlist="`)