-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Add datadog APM support #115
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,12 @@ spec: | |
source: | ||
dockerfile: |- | ||
FROM {{ richie_image_name }}:{{ richie_image_tag }} | ||
# Add new statements here | ||
USER 0 | ||
{% if is_apm_enabled -%} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add a comment line because this Dockerfile extract will receive several separate augmentations? |
||
RUN pip install ddtrace | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This code is only for datadog so why the variable is named is_apm_enabled ? Or we can specify the APM name on the variable, so s_apm_enabled can ave the value (false, datadog, newrelic, etc.) |
||
CMD ddtrace-run gunicorn -c /usr/local/etc/gunicorn/richie.py richie.wsgi:application | ||
{% endif -%} | ||
USER 10000 | ||
triggers: | ||
- type: "ConfigChange" | ||
output: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,18 @@ spec: | |
value: "{{ richie_host }}" | ||
- name: ES_CLIENT | ||
value: "richie-{{ richie_elasticsearch_host }}-{{ deployment_stamp }}" | ||
{% if is_apm_enabled -%} | ||
- name: DATADOG_TRACE_AGENT_HOSTNAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: status.hostIP | ||
- name: DD_AGENT_SERVICE_HOST | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: status.hostIP | ||
- name: DD_AGENT_SERVICE_PORT | ||
value: "{{ apm_agent_port }}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add a default value ? |
||
{% endif -%} | ||
envFrom: | ||
- secretRef: | ||
name: richie-{{ secret_id }} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why creating a BC who do nothing if we have no apm ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To take advantage of the cluster's docker repository and speed up image pulling. We only create a IS/BC for our public images that will:
customer
and anenv_type