diff options
author | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-21 06:40:35 -0400 |
---|---|---|
committer | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-21 06:40:35 -0400 |
commit | b59edbe7bd52227089e949383f986f7e058dbb23 (patch) | |
tree | b51586bbf04c6b65b0e8647c8f8c65e3af7de8de /pkg | |
parent | eca0a756c7eccb83e7efb6f6c8a1b4ca1e477a79 (diff) | |
download | Atlas-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.go | 4 |
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="`) |