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

Commit

Permalink
point graphite at phx
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Balogh committed Sep 1, 2011
1 parent 5d93726 commit 41ed3ca
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
25 changes: 12 additions & 13 deletions apps/amo/templates/services/graphite.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
{% set ns = "stats." + site %}

{% if site == 'addons' %}
{% set base = "https://graphite-phx.mozilla.org/render/?width={0}&height={1}"|f(width, height) %}
{% else %}
{% set base = "https://graphite-sjc.mozilla.org/render/?width={0}&height={1}"|f(width, height) %}
{% endif %}
{% set base = "https://graphite-phx.mozilla.org/render/?width={0}&height={1}"|f(width, height) %}

{% set site_name = {
'pamo': 'Preview',
'namo': 'Next',
'amo': 'Production',
'addons': 'PHX',
'dev': 'Preview',
'stage': 'Stage',
}[site] %}

{% set site_url = {
'pamo': 'https://addons.allizom.org',
'namo': 'https://addons-next.allizom.org',
'amo': 'https://addons.mozilla.org',
'addons': 'https://addons.mozilla.org',
'dev': 'https://addons-dev.allizom.org',
'stage': 'https://addons.allizom.org',
}[site] %}

{% set site = {
'addons': 'addons',
'dev': 'addons-dev',
'stage': 'addons-stage',
}[site] %}
{% set ns = "stats." + site %}

{% set fifteen = "from=-15minutes&title=15 minutes" %}
{% set hour = "from=-1hours&title=1 hour" %}
{% set day = "from=-24hours&title=24 hours" %}
Expand Down
2 changes: 1 addition & 1 deletion apps/amo/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
url('^csp/report$', views.cspreport, name='amo.csp.report'),
url('^builder-pingback', views.builder_pingback,
name='amo.builder-pingback'),
url('^graphite/(pamo|namo|amo|addons)$', views.graphite,
url('^graphite/(addons|dev|stage)$', views.graphite,
name='amo.graphite'),
)

Expand Down

0 comments on commit 41ed3ca

Please sign in to comment.