Skip to content

Commit

Permalink
Use our standard names in dashboard
Browse files Browse the repository at this point in the history
This will display au-prod instead of openfoodnetwork.org.au and it will
show uk-prod instead of vps-d2442729. It makes it easier to see the
hosts and filter by production or staging.
  • Loading branch information
mkllnk authored and dacook committed Oct 10, 2023
1 parent 0c74ce4 commit d7c0398
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/newrelic/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- name: restart newrelic_infra
service:
name: "newrelic-infra.service"
state: restarted
8 changes: 8 additions & 0 deletions roles/newrelic/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@
NEW_RELIC_REGION: "{{ new_relic_region }}"
args:
creates: /usr/bin/newrelic-infra

- name: Use our standard names in dashboard
lineinfile:
name: "/etc/newrelic-infra.yml"
line: "display_name: {{ host_id }}"
regex: "^display_name:"
state: present
notify: restart newrelic_infra

0 comments on commit d7c0398

Please sign in to comment.