Add prefix to nefario metrics

Add prefix to nefario metrics

diff --git a/lib/nefario.rb b/lib/nefario.rb
index 0f4cc20..a4cce8a 100644
--- a/lib/nefario.rb
+++ b/lib/nefario.rb
@@ -11,8 +11,8 @@ class Nefario
   string :NEFARIO_HOST_HOSTNAME, default: Socket.gethostname
   integer :NEFARIO_IMAGE_REFRESH_INTERVAL, default: 15 * 60
 
-  gauge :pending_refresh_total, docstring: "number of pods pending refresh"
-  gauge :pending_events_total, docstring: "number of inotify events left to process"
+  gauge :nefario_pending_refresh_total, docstring: "number of pods pending refresh"
+  gauge :nefario_pending_events_total, docstring: "number of inotify events left to process"
 
   def self.register_ultravisor_children(ultravisor, config:, metrics_registry:)
     ultravisor.add_child(
diff --git a/lib/nefario/config_dir_watcher.rb b/lib/nefario/config_dir_watcher.rb
index f212d36..c66f53b 100644
--- a/lib/nefario/config_dir_watcher.rb
+++ b/lib/nefario/config_dir_watcher.rb
@@ -17,7 +17,7 @@ class Nefario::ConfigDirWatcher
   def run
     notifier = INotify::Notifier.new
     notifier.watch(@config.config_directory, :move, :close_write, :delete) do |event|
-      @metrics.pending_events_total.set(@inotify_queue.length)
+      @metrics.nefario_pending_events_total.set(@inotify_queue.length)
       @inotify_queue << event
     end
 
@@ -71,7 +71,7 @@ class Nefario::ConfigDirWatcher
           break if @inotify_queue.closed?
 
           process_inotify_event(event)
-          @metrics.pending_events_total.set(@inotify_queue.length)
+          @metrics.nefario_pending_events_total.set(@inotify_queue.length)
         rescue => e
           logger.warn(logloc) { "Failed to process inotify event: #{e}" }
         end
diff --git a/lib/nefario/image_watcher.rb b/lib/nefario/image_watcher.rb
index 5f27374..f3925a7 100644
--- a/lib/nefario/image_watcher.rb
+++ b/lib/nefario/image_watcher.rb
@@ -60,7 +60,7 @@ class Nefario::ImageWatcher
 
     changed_pods.uniq!
 
-    @metrics.pending_refresh_total.set(changed_pods.length)
+    @metrics.nefario_pending_refresh_total.set(changed_pods.length)
     i = 0
 
     changed_pods.each do |p|
@@ -68,7 +68,7 @@ class Nefario::ImageWatcher
 
       @ultravisor[:moby_derp_runner].cast.refresh_pod(p)
       i += 1
-      @metrics.pending_refresh_total.set((changed_pods.length - i))
+      @metrics.nefario_pending_refresh_total.set((changed_pods.length - i))
     end
   end
 

GitHub sha: f86eca25