Mackerel blog #mackerelio

The Official Blog of Mackerel

The Host Display Name could now be obtained/renewed via mkr etc

Here is this week's Mackerel update:

The Host Display Name could now be obtained/renewed via mkr

The Host Display Name could be set to distinguish between hosts in Mackerel.

Hosts that have this property set will be displayed as “display name (host name)” in Mackerel as shown below.

In this update, this field could now be modified via mkr.

The property displayName corresponds to the Host Display Name when using mkr.

$ mkr hosts
[
    {
        "id": "<hostId>",
        "name": "ip-XXX-XXX-XXX-XXX",
        "displayName": "sample-host",
        "status": "standby",
        "roleFullnames": [
            "personal-server:EC2"
        ],
        "isRetired": false,
        "createdAt": "Nov 7, 2015 at 6:18am (UTC)"
    }
]

Updating could be done through mkr as well.

$ mkr update --displayName updated-name <hostId>

$ mkr hosts
[
    {
        "id": "<hostId>",
        "name": "ip-XXX-XXX-XXX-XXX",
        "displayName": "updated-name",
        "status": "standby",
        "roleFullnames": [
            "personal-server:EC2"
        ],
        "isRetired": false,
        "createdAt": "Nov 7, 2015 at 6:18am (UTC)"
    }
]

This feature is available in mkr 0.9.0 and above.

Several plugins including jmx-jolokia have been added to mackerel-agent-plugins.

mackerel-agent-plugins 0.17.0 has been released.

The latest update contains an addition of 3 types of plugins (including jmx-jolokia) and a variety of changes to existing plugins.

Regarding the usages of each plugin, please refer to the README for each.

github.com

The details of the changes are as follows:

  • mackerel-agent-plugins 0.17.0

    • Add mackerel-plugin-jmx-jolokia
    • Add mackerel-plugin-rabbitmq
    • Add mackerel-plugin-conntrack
    • mackerel-plugin-elasticsearch: Add metric-key-prefix metric-label-prefix options
    • mackerel-plugin-memcached: Add socket option
  • mackerel-agent 0.28.1

    • A fix for the problem in Debian, where there are times that the status code becomes 1 when the agent is stopped.
  • mkr 0.9.0

    • Be able to obtain/renew the Host Display Name of hosts

Thank you to all who have given us pull requests!