Commit c206f79b by Adam Palay

tentative stab at adding newrelic monitoring to coursegraph (SUST-81)

parent bb64152a
...@@ -72,9 +72,35 @@ ...@@ -72,9 +72,35 @@
- install - install
- install:configuration - install:configuration
- name: set to run neo4j with the newrelic javaagent
# see https://docs.newrelic.com/docs/agents/java-agent/installation/java-agent-manual-installation
lineinfile:
dest: "{{ neo4j_server_config_file }}"
regexp: "wrapper.java.additional.2="
line: "wrapper.java.additional.2=/etc/neo4j/newrelic.jar"
tags:
- install
- install:configuration
- name: store jar file for javaagent
copy:
src: newrelic.jar
dest: /etc/neo4j
# just guessing? No idea what mode we'd need
mode: "0644"
tags:
- install
- install:configuration
- template:
src: ../templates/etc/neo4j/newrelic.yml.j2
dest: /etc/neo4j/newrelic.yml
# owner: do I need one?
mode: 0644
- name: restart neo4j - name: restart neo4j
service: service:
name: neo4j name: neo4j
state: restarted state: restarted
tags: tags:
- manage - manage
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment