Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Add a prefix to the statsd key
Browse files Browse the repository at this point in the history
We have loads of stats at the top leve of our statsd stats in graphite.
It makes looking for things that aren't created by backdrop really
hard.
  • Loading branch information
robyoung committed May 19, 2014
1 parent 5cc99e3 commit e679b7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backdrop/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ def func(stat, *args, **kwargs):
return getattr(self._statsd, item)

statsd = StatsClient(
_statsd.StatsClient(prefix=os.getenv("GOVUK_STATSD_PREFIX")))
_statsd.StatsClient(prefix=os.getenv(
"GOVUK_STATSD_PREFIX", "pp.apps.backdrop")))

0 comments on commit e679b7d

Please sign in to comment.