Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
0761a4d2
Commit
0761a4d2
authored
Aug 22, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1464 from edx/jarv/enable-newrelic-app
enable the newrelic app as a separate flag
parents
d27c4044
5d801266
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
11 deletions
+14
-11
playbooks/roles/analytics-api/templates/edx/app/analytics-api/analytics-api.sh.j2
+2
-2
playbooks/roles/common/defaults/main.yml
+3
-0
playbooks/roles/edxapp/templates/cms.conf.j2
+2
-2
playbooks/roles/edxapp/templates/lms.conf.j2
+2
-2
playbooks/roles/xqueue/templates/xqueue.conf.j2
+2
-2
playbooks/roles/xqwatcher/templates/edx/app/supervisor/conf.d/xqwatcher.conf.j2
+2
-2
util/jenkins/ansible-provision.sh
+1
-1
No files found.
playbooks/roles/analytics-api/templates/edx/app/analytics-api/analytics-api.sh.j2
View file @
0761a4d2
...
@@ -2,13 +2,13 @@
...
@@ -2,13 +2,13 @@
# {{ ansible_managed }}
# {{ ansible_managed }}
{
%
if
COMMON_ENABLE_NEWRELIC %
}
{
%
if
COMMON_ENABLE_NEWRELIC
_APP
%
}
{
%
set
executable
=
analytics_api_venv_bin +
'/newrelic-admin run-program '
+ analytics_api_venv_bin +
'/gunicorn'
%
}
{
%
set
executable
=
analytics_api_venv_bin +
'/newrelic-admin run-program '
+ analytics_api_venv_bin +
'/gunicorn'
%
}
{
%
else
%
}
{
%
else
%
}
{
%
set
executable
=
analytics_api_venv_bin +
'/gunicorn'
%
}
{
%
set
executable
=
analytics_api_venv_bin +
'/gunicorn'
%
}
{
% endif %
}
{
% endif %
}
{
%
if
COMMON_ENABLE_NEWRELIC %
}
{
%
if
COMMON_ENABLE_NEWRELIC
_APP
%
}
export
NEW_RELIC_APP_NAME
=
"{{ ANALYTICS_API_NEWRELIC_APPNAME }}"
export
NEW_RELIC_APP_NAME
=
"{{ ANALYTICS_API_NEWRELIC_APPNAME }}"
export
NEW_RELIC_LICENSE_KEY
=
"{{ NEWRELIC_LICENSE_KEY }}"
export
NEW_RELIC_LICENSE_KEY
=
"{{ NEWRELIC_LICENSE_KEY }}"
{
% endif -%
}
{
% endif -%
}
...
...
playbooks/roles/common/defaults/main.yml
View file @
0761a4d2
...
@@ -56,6 +56,9 @@ COMMON_ENABLE_DATADOG: False
...
@@ -56,6 +56,9 @@ COMMON_ENABLE_DATADOG: False
COMMON_ENABLE_NGINXTRA
:
False
COMMON_ENABLE_NGINXTRA
:
False
COMMON_ENABLE_SPLUNKFORWARDER
:
False
COMMON_ENABLE_SPLUNKFORWARDER
:
False
COMMON_ENABLE_NEWRELIC
:
False
COMMON_ENABLE_NEWRELIC
:
False
# enables app reporting, you must enable newrelic
# as well
COMMON_ENABLE_NEWRELIC_APP
:
False
COMMON_ENABLE_MINOS
:
False
COMMON_ENABLE_MINOS
:
False
COMMON_TAG_EC2_INSTANCE
:
False
COMMON_TAG_EC2_INSTANCE
:
False
common_debian_pkgs
:
common_debian_pkgs
:
...
...
playbooks/roles/edxapp/templates/cms.conf.j2
View file @
0761a4d2
[program:cms]
[program:cms]
{% if COMMON_ENABLE_NEWRELIC -%}
{% if COMMON_ENABLE_NEWRELIC
_APP
-%}
{% set executable = edxapp_venv_dir + '/bin/newrelic-admin run-program ' + edxapp_venv_dir + '/bin/gunicorn' -%}
{% set executable = edxapp_venv_dir + '/bin/newrelic-admin run-program ' + edxapp_venv_dir + '/bin/gunicorn' -%}
{% else -%}
{% else -%}
{% set executable = edxapp_venv_dir + '/bin/gunicorn' -%}
{% set executable = edxapp_venv_dir + '/bin/gunicorn' -%}
...
@@ -24,7 +24,7 @@ command={{ executable }} {{ max_req }} --preload -b {{ edxapp_cms_gunicorn_host
...
@@ -24,7 +24,7 @@ command={{ executable }} {{ max_req }} --preload -b {{ edxapp_cms_gunicorn_host
user={{ common_web_user }}
user={{ common_web_user }}
directory={{ edxapp_code_dir }}
directory={{ edxapp_code_dir }}
environment={% if COMMON_ENABLE_NEWRELIC %}NEW_RELIC_APP_NAME={{ EDXAPP_NEWRELIC_CMS_APPNAME }},NEW_RELIC_LICENSE_KEY={{ NEWRELIC_LICENSE_KEY }},{% endif -%}PORT={{edxapp_cms_gunicorn_port}},ADDRESS={{edxapp_cms_gunicorn_host}},LANG={{ EDXAPP_LANG }},DJANGO_SETTINGS_MODULE={{ edxapp_cms_env }},SERVICE_VARIANT="cms"
environment={% if COMMON_ENABLE_NEWRELIC
_APP
%}NEW_RELIC_APP_NAME={{ EDXAPP_NEWRELIC_CMS_APPNAME }},NEW_RELIC_LICENSE_KEY={{ NEWRELIC_LICENSE_KEY }},{% endif -%}PORT={{edxapp_cms_gunicorn_port}},ADDRESS={{edxapp_cms_gunicorn_host}},LANG={{ EDXAPP_LANG }},DJANGO_SETTINGS_MODULE={{ edxapp_cms_env }},SERVICE_VARIANT="cms"
stdout_logfile={{ supervisor_log_dir }}/%(program_name)-stdout.log
stdout_logfile={{ supervisor_log_dir }}/%(program_name)-stdout.log
stderr_logfile={{ supervisor_log_dir }}/%(program_name)-stderr.log
stderr_logfile={{ supervisor_log_dir }}/%(program_name)-stderr.log
killasgroup=true
killasgroup=true
...
...
playbooks/roles/edxapp/templates/lms.conf.j2
View file @
0761a4d2
[program:lms]
[program:lms]
{% if COMMON_ENABLE_NEWRELIC -%}
{% if COMMON_ENABLE_NEWRELIC
_APP
-%}
{% set executable = edxapp_venv_dir + '/bin/newrelic-admin run-program ' + edxapp_venv_dir + '/bin/gunicorn' -%}
{% set executable = edxapp_venv_dir + '/bin/newrelic-admin run-program ' + edxapp_venv_dir + '/bin/gunicorn' -%}
{% else -%}
{% else -%}
{% set executable = edxapp_venv_dir + '/bin/gunicorn' -%}
{% set executable = edxapp_venv_dir + '/bin/gunicorn' -%}
...
@@ -25,7 +25,7 @@ command={{ executable }} {{ max_req }} --preload -b {{ edxapp_lms_gunicorn_host
...
@@ -25,7 +25,7 @@ command={{ executable }} {{ max_req }} --preload -b {{ edxapp_lms_gunicorn_host
user={{ common_web_user }}
user={{ common_web_user }}
directory={{ edxapp_code_dir }}
directory={{ edxapp_code_dir }}
environment={% if COMMON_ENABLE_NEWRELIC %}NEW_RELIC_APP_NAME={{ EDXAPP_NEWRELIC_LMS_APPNAME }},NEW_RELIC_LICENSE_KEY={{ NEWRELIC_LICENSE_KEY }},{% endif -%} PORT={{edxapp_lms_gunicorn_port}},ADDRESS={{edxapp_lms_gunicorn_host}},LANG={{ EDXAPP_LANG }},DJANGO_SETTINGS_MODULE={{ edxapp_lms_env }},SERVICE_VARIANT="lms",PATH="{{ edxapp_deploy_path }}"
environment={% if COMMON_ENABLE_NEWRELIC
_APP
%}NEW_RELIC_APP_NAME={{ EDXAPP_NEWRELIC_LMS_APPNAME }},NEW_RELIC_LICENSE_KEY={{ NEWRELIC_LICENSE_KEY }},{% endif -%} PORT={{edxapp_lms_gunicorn_port}},ADDRESS={{edxapp_lms_gunicorn_host}},LANG={{ EDXAPP_LANG }},DJANGO_SETTINGS_MODULE={{ edxapp_lms_env }},SERVICE_VARIANT="lms",PATH="{{ edxapp_deploy_path }}"
stdout_logfile={{ supervisor_log_dir }}/%(program_name)-stdout.log
stdout_logfile={{ supervisor_log_dir }}/%(program_name)-stdout.log
stderr_logfile={{ supervisor_log_dir }}/%(program_name)-stderr.log
stderr_logfile={{ supervisor_log_dir }}/%(program_name)-stderr.log
killasgroup=true
killasgroup=true
...
...
playbooks/roles/xqueue/templates/xqueue.conf.j2
View file @
0761a4d2
[program:xqueue]
[program:xqueue]
{% if COMMON_ENABLE_NEWRELIC %}
{% if COMMON_ENABLE_NEWRELIC
_APP
%}
{% set executable = xqueue_venv_bin + '/newrelic-admin run-program ' + xqueue_venv_bin + '/gunicorn' %}
{% set executable = xqueue_venv_bin + '/newrelic-admin run-program ' + xqueue_venv_bin + '/gunicorn' %}
{% else %}
{% else %}
{% set executable = xqueue_venv_bin + '/gunicorn' %}
{% set executable = xqueue_venv_bin + '/gunicorn' %}
...
@@ -19,7 +19,7 @@ command={{ executable }} --preload -b {{ xqueue_gunicorn_host }}:{{ xqueue_gunic
...
@@ -19,7 +19,7 @@ command={{ executable }} --preload -b {{ xqueue_gunicorn_host }}:{{ xqueue_gunic
user={{ common_web_user }}
user={{ common_web_user }}
directory={{ xqueue_code_dir }}
directory={{ xqueue_code_dir }}
environment={% if COMMON_ENABLE_NEWRELIC %}NEW_RELIC_APP_NAME={{ XQUEUE_NEWRELIC_APPNAME }},NEW_RELIC_LICENSE_KEY={{ NEWRELIC_LICENSE_KEY }},{% endif -%}PID=/var/tmp/xqueue.pid,PORT={{ xqueue_gunicorn_port }},ADDRESS={{ xqueue_gunicorn_host }},LANG={{ XQUEUE_LANG }},DJANGO_SETTINGS_MODULE=xqueue.aws_settings,SERVICE_VARIANT="xqueue"
environment={% if COMMON_ENABLE_NEWRELIC
_APP
%}NEW_RELIC_APP_NAME={{ XQUEUE_NEWRELIC_APPNAME }},NEW_RELIC_LICENSE_KEY={{ NEWRELIC_LICENSE_KEY }},{% endif -%}PID=/var/tmp/xqueue.pid,PORT={{ xqueue_gunicorn_port }},ADDRESS={{ xqueue_gunicorn_host }},LANG={{ XQUEUE_LANG }},DJANGO_SETTINGS_MODULE=xqueue.aws_settings,SERVICE_VARIANT="xqueue"
stdout_logfile={{ supervisor_log_dir }}/%(program_name)-stdout.log
stdout_logfile={{ supervisor_log_dir }}/%(program_name)-stdout.log
stderr_logfile={{ supervisor_log_dir }}/%(program_name)-stderr.log
stderr_logfile={{ supervisor_log_dir }}/%(program_name)-stderr.log
...
...
playbooks/roles/xqwatcher/templates/edx/app/supervisor/conf.d/xqwatcher.conf.j2
View file @
0761a4d2
; {{ ansible_managed }}
; {{ ansible_managed }}
;
;
{% if COMMON_ENABLE_NEWRELIC %}
{% if COMMON_ENABLE_NEWRELIC
_APP
%}
{% set executable = xqwatcher_venv_dir + '/bin/newrelic-admin run-program ' + xqwatcher_venv_dir + '/bin/python' %}
{% set executable = xqwatcher_venv_dir + '/bin/newrelic-admin run-program ' + xqwatcher_venv_dir + '/bin/python' %}
{% else %}
{% else %}
{% set executable = xqwatcher_venv_dir + '/bin/python' %}
{% set executable = xqwatcher_venv_dir + '/bin/python' %}
...
@@ -14,6 +14,6 @@ user={{ xqwatcher_user }}
...
@@ -14,6 +14,6 @@ user={{ xqwatcher_user }}
directory={{ xqwatcher_code_dir }}
directory={{ xqwatcher_code_dir }}
stdout_logfile={{ xqwatcher_supervisor_log_dir }}/%(program_name)-stdout.log
stdout_logfile={{ xqwatcher_supervisor_log_dir }}/%(program_name)-stdout.log
stderr_logfile={{ xqwatcher_supervisor_log_dir }}/%(program_name)-stderr.log
stderr_logfile={{ xqwatcher_supervisor_log_dir }}/%(program_name)-stderr.log
environment={% if COMMON_ENABLE_NEWRELIC %}NEW_RELIC_APP_NAME={{ XQWATCHER_NEWRELIC_APPNAME }},NEW_RELIC_LICENSE_KEY={{ NEWRELIC_LICENSE_KEY }},{% endif -%}
environment={% if COMMON_ENABLE_NEWRELIC
_APP
%}NEW_RELIC_APP_NAME={{ XQWATCHER_NEWRELIC_APPNAME }},NEW_RELIC_LICENSE_KEY={{ NEWRELIC_LICENSE_KEY }},{% endif -%}
killasgroup=true
killasgroup=true
stopasgroup=true
stopasgroup=true
util/jenkins/ansible-provision.sh
View file @
0761a4d2
...
@@ -166,7 +166,7 @@ COMMON_USER_INFO:
...
@@ -166,7 +166,7 @@ COMMON_USER_INFO:
github: true
github: true
type: admin
type: admin
USER_CMD_PROMPT: '[
$name_tag
] '
USER_CMD_PROMPT: '[
$name_tag
] '
COMMON_ENABLE_NEWRELIC:
$enable_monitoring
COMMON_ENABLE_NEWRELIC
_APP
:
$enable_monitoring
COMMON_ENABLE_DATADOG:
$enable_monitoring
COMMON_ENABLE_DATADOG:
$enable_monitoring
FORUM_NEW_RELIC_ENABLE:
$enable_monitoring
FORUM_NEW_RELIC_ENABLE:
$enable_monitoring
EDXAPP_NEWRELIC_LMS_APPNAME: sandbox-
${
dns_name
}
-edxapp-lms
EDXAPP_NEWRELIC_LMS_APPNAME: sandbox-
${
dns_name
}
-edxapp-lms
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment