Netflix / SimianArmy

Tools for keeping your cloud operating in top form. Chaos Monkey is a resiliency tool that helps applications tolerate random instance failures.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Display resource name in Janitor Monkey notifications

truongvinhtien opened this issue · comments

Hi,
I would like to know how to add another column into the notification email or at least append the name into the resource id such as "resource_id":"resource_name". I have tried to modified the method getResourceDisplay in the BasicJanitorEmailBuilder.java:

protected String getResourceDisplay(Resource resource) {
        String tag = "Name";
        String result = resource.getId() + ":" + resource.getTag(tag);
        return result;
    }

but in the email it appear to be null:
image

Is there anyway to do this properly? Thank you very much!