Remove missing_post_uploads metric (#6)

Remove missing_post_uploads metric (#6)

See https://github.com/discourse/discourse/pull/10173

diff --git a/lib/collector.rb b/lib/collector.rb
index 41d094e..90ca0d9 100644
--- a/lib/collector.rb
+++ b/lib/collector.rb
@@ -25,7 +25,6 @@ module ::DiscoursePrometheus
       @sidekiq_job_count = nil
 
       @missing_s3_uploads = nil
-      @missing_post_uploads = nil
 
       @process_metrics = []
       @global_metrics = []
@@ -173,11 +172,6 @@ module ::DiscoursePrometheus
       )
 
       global_metrics << Gauge.new(
-        "missing_post_uploads",
-        "Number of missing post uploads"
-      )
-
-      global_metrics << Gauge.new(
         "version",
         "Revision number of discourse starting from HEAD"
       )
diff --git a/lib/internal_metric/global.rb b/lib/internal_metric/global.rb
index 0c83be3..163bb6b 100644
--- a/lib/internal_metric/global.rb
+++ b/lib/internal_metric/global.rb
@@ -22,7 +22,6 @@ module DiscoursePrometheus::InternalMetric
       :sidekiq_workers,
       :sidekiq_jobs_stuck,
       :scheduled_jobs_stuck,
-      :missing_post_uploads,
       :missing_s3_uploads,
       :version
 
@@ -113,7 +112,6 @@ module DiscoursePrometheus::InternalMetric
       @sidekiq_paused = sidekiq_paused_states
 
       @missing_s3_uploads = missing_uploads("s3")
-      @missing_post_uploads = missing_uploads("post")
     end
 
     # For testing purposes
diff --git a/spec/lib/internal_metric/global_spec.rb b/spec/lib/internal_metric/global_spec.rb
index ac8485a..659ea09 100644
--- a/spec/lib/internal_metric/global_spec.rb
+++ b/spec/lib/internal_metric/global_spec.rb
@@ -21,16 +21,12 @@ module DiscoursePrometheus::InternalMetric
 
     it "should collect the missing upload metrics" do
       Discourse.stats.set("missing_s3_uploads", 2)
-      Discourse.stats.set("missing_post_uploads", 1)
 
       metric.collect
 
       expect(metric.missing_s3_uploads).to eq(
         { db: db } => 2
       )
-      expect(metric.missing_post_uploads).to eq(
-        { db: db } => 1
-      )
     end
 
     it 'should throttle the collection of missing upload metrics' do

GitHub sha: ec32a612

This commit appears in #6 which was approved by CvX. It was merged by davidtaylorhq.