Mackerel blog #mackerelio

The Official Blog of Mackerel

External monitoring now supports HTTP methods other than GET・mkr graph annotation support etc.

Signs of Spring are starting to show and with this season, comes the anxiety of allergies… It might be interesting to use Mackerel to try and monitor the amount of pollen spreading.

Here is this week’s update information.

External monitoring now supports HTTP methods other than GET

We’ve expanded the types of HTTP methods available for external monitoring.

The available methods are: GET POST PUT and DELETE .

Additionally, it is now possible to specify the accompanying request body.

This makes it possible to monitor various APIs from methods other than GET and allows for more versatile external monitoring.

Pagination for alerts with a long history

When a large amount of logs are recorded by check monitoring etc. in alert details, pagination can now be done to the history.

The most recent history along with the first 20 events since the alert occurred are displayed in first view, making it easier to grasp the details of alerts with long history.

Graph annotations are now supported in mkr

mackerel.io

The recently released graph annotations are now supported in mkr.

Use the subcommand mkr annotations.

Example

create

% mkr annotations create --service My-Machine --from 1480125301 --to 1486125301 --title "Deploy"

list

% mkr annotations list --service My-Machine --from 1480125301 --to 1486125301

[
    {
        "id": "2VpN33ceumh",
        "title": "Deploy",
        "from": 1480125301,
        "to": 1486125301,
        "service": "My-Machine"
    }
]

update

% mkr annotations update --id 2VpN33ceumh --service My-Machine --from 1485013461 --to 1485169804 --title "updated" --role Desktop --role Laptop

{
    "id": "2VpN33ceumh",
    "title": "updated",
    "from": 1485013461,
    "to": 1485169804,
    "service": "My-Machine",
    "roles": [
        "Desktop",
        "Laptop"
    ]
}

delete

% mkr annotations delete --id 2VpN33ceumh

{
    "id": "2VpN33ceumh",
    "title": "updated",
    "from": 1485013461,
    "to": 1485169804,
    "service": "My-Machine",
    "roles": [
        "Desktop",
        "Laptop"
    ]
}

This week’s release details for mkr and mackerel-agent-plugins

  • mkr 0.14.3
    • graph annotation support
    • mkr monitor to handle more HTTP methods and request body
    • other minor adjustments
  • mackerel-agent-plugins 0.25.3
    • [multicore] corrected the bug regarding the tempfile not being created
    • [aws-rds] Aurora metrics now obtainable