From 2ae48e955a15e1456b801c349a6688d54fbc5f20 Mon Sep 17 00:00:00 2001 From: Aidan <63606283+artificial-aidan@users.noreply.github.com> Date: Thu, 10 Mar 2022 19:07:01 -0800 Subject: [PATCH] Add main_thread metrics added in 6.2 (#619) --- exporter/exporter.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/exporter/exporter.go b/exporter/exporter.go index 82800177..2b0e3cbc 100644 --- a/exporter/exporter.go +++ b/exporter/exporter.go @@ -266,10 +266,12 @@ func NewRedisExporter(redisURI string, opts Options) (*Exporter, error) { "keyspace_hits": "keyspace_hits_total", "keyspace_misses": "keyspace_misses_total", - "used_cpu_sys": "cpu_sys_seconds_total", - "used_cpu_user": "cpu_user_seconds_total", - "used_cpu_sys_children": "cpu_sys_children_seconds_total", - "used_cpu_user_children": "cpu_user_children_seconds_total", + "used_cpu_sys": "cpu_sys_seconds_total", + "used_cpu_user": "cpu_user_seconds_total", + "used_cpu_sys_children": "cpu_sys_children_seconds_total", + "used_cpu_user_children": "cpu_user_children_seconds_total", + "used_cpu_sys_main_thread": "cpu_sys_main_thread_seconds_total", + "used_cpu_user_main_thread": "cpu_user_main_thread_seconds_total", }, }