Skip to content

Commit

Permalink
Also send stats to statsd
Browse files Browse the repository at this point in the history
  • Loading branch information
lalinsky committed Dec 3, 2024
1 parent 4ecca2d commit a3349ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions acoustid/scripts/update_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def run_update_stats(script):
logger.info("Updating stats %s", name)
value = ctx.db.connection(bind_key).execute(query).scalar()
ctx.db.get_app_db().execute(insert.values({"name": name, "value": value}))
ctx.statsd.gauge(name.replace('.', '_'), value)

for i, value in get_track_count_stats(
ctx.db.get_fingerprint_db(), MBID_TRACK_QUERY
Expand Down

0 comments on commit a3349ba

Please sign in to comment.