Skip to content

Commit

Permalink
Merge pull request #1577 from alphagov/change-indices-statsd-metric-name
Browse files Browse the repository at this point in the history
Change the *_index.docs.count metric name
  • Loading branch information
cbaines committed Jun 12, 2019
2 parents ed40dad + 5716a23 commit 01190e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tasks/indices.rake
Expand Up @@ -183,8 +183,8 @@ You should run this task if the index schema has changed.
docs = stats["_all"]["primaries"]["docs"]

count = docs["count"]
statsd.gauge("#{index}_index.docs.count", count)
puts "#{index}_index.docs.count=#{count}"
statsd.gauge("#{index}_index.docs.total", count)
puts "#{index}_index.docs.total=#{count}"

deleted = docs["deleted"]
statsd.gauge("#{index}_index.docs.deleted", deleted)
Expand Down

0 comments on commit 01190e4

Please sign in to comment.