Subscribed unsubscribe Subscribe Subscribe

Mackerel blog #mackerelio

The Official Blog of Mackerel

Memos can now be left for monitoring rules using mkr commands

Hello! Sales engineer id:Soudai here.

The cherry blossoms have started to bloom a little early and it’s finally starting to feel like spring.

Mackerel Drink Up #4 Tokyo - connpass was held last week and a lot of people attended the event. We were able to exchange ideas on topics like plugin implementation and even had an LT tournament, all while enjoying a really fun atmosphere.

Here’s a report blog written by a participant.

I also participated in the LT tournament. Take a look at this as well.

If you were too busy and couldn’t make it this time, don’t worry! We’ll be holding these types of events regularly in the future. So by all means, join us next time!!

Anyways, here is this week’s update information.

Memos can now be be left for monitoring rules using mkr commands

Last week we released a feature that lets you leave notes for monitoring rules. Now, this feature is also supported by mkr. As before, by simply adding the memo item, this feature is easy to use when updating with mkr monitors.

Example use

% mkr monitors diff
 {
   "critical": 2000,
   "duration": 1,
   "metric": "hoge.count",
   "name": "mackerel-demo - hoge.count",
+  "memo": "test"
   "operator": ">",
   "service": "mackerel-demo",
   "type": "service",
   "warning": 1000
 },

% mkr monitors push

Now accepting applications for the Mackerel Hands-On Seminar

Starting from last year, the Mackerel Hands-On Seminar has been held 6 times. It’s an event where you can come and learn all sorts of things, from “why server monitoring is necessary” to Mackerel monitoring configurations and handling alerts in a practical workshop format. The first seminar of this year will be held on April 12th (Wed.). Definitely consider applying if you meet any of the following:

  • For those who are interested in, but do not have experience with server monitoring or monitoring related work
  • For those who might have heard of “Mackerel”, but aren’t exactly sure what it is
  • For those who are currently pursuing a job as an engineer

For more details, visit the application site linked below. We still have spots left, so please apply!

mackerelio.connpass.com

You can now leave notes for monitoring rules

Production has finally finished for the Mackerel glass, one of the gifts for the 2017 New Year campaign! We started shipping the other day so hopefully one will find its way to you soon.

If you’re selected, be sure to tweet with the hashtag #mackerelio!

We may be giving out more presents at Meetup and other official events in the future. You definitely don’t want to miss out! Anyways, here is this week’s update information.

You can now leave notes for monitoring rules

You can now leave notes for each monitoring rule set in Mackerel.

https://cdn-ak.f.st-hatena.com/images/fotolife/m/mackerelio/20170321/20170321113719.png?1490063854

You can also create notes via the API.

mackerel.io

Mackerel Drink Up #4 Tokyo!

Mackerel Drink Up is mainly a chance for our Mackerel users to come hang out at the Hatena Tokyo office, eat, drink, and talk about all sorts of things. The 4th Mackerel Drink Up will be held on Wednesday, March 22nd!

Mackerel Drink Up #4 Tokyo - connpass

This event is perfect for those of you who are curious to see how other users are using Mackerel or if you would like to speak to the Mackerel staff directly. Those who wish to attend will be chosen by lottery due to the limited number of spots, but there are still plenty available, so by all means, apply!

Updates for mackerel-agent and check-plugin

Hello. Mackerel sales engineer id:a-know here.

I’m in the habit of checking the weather forecast everyday before I head to work and the temperature just doesn’t seem to want to warm up. I’m ready for a season where I don’t need my coat.

Over the last couple of weeks we’ve announced our participation as a sponsor of JAWS DAYS 2017, but the day is finally upon us with the event being held tomorrow.

Mackerel sales engineer id:Soudai will being giving a presentation during the A-track lunchtime session. Be sure not to miss it!

Anyways, here is this week’s update information.

Updates for Mackerel-agent・go-check-plugins

mackerel-agent v0.41.1

mackerel-agent was updated to version 0.41.1. The main changes are as follows.

  • supervisor mode added
    • By specifying as mackerel-agent supervise [-conf <config-file>] [options], running in supervisor mode is now possible
    • By running in supervisor mode, you can restart and have automatic recovery when process crashes occur via HUP signals
  • The issue with environment variables not being handed over when the user option is specified was fixed
    • By specifying the user option in the plugin settings of mackerel-agent.conf, it is possible to specify an executive user for each plugin
  • [Windows version agent] The following changes were made
    • The issue of disk IOPS metrics only being able to obtain C drive was corrected
    • The check-tcp plugin was included

go-check-plugins v0.9.5

Mackerel’s go-check-plugins was also updated. The latest version is now 0.9.5. The main changes are as follows.

  • [check-tcp] The following corrections were made
    • Connection waiting time is now taken into account when the timeout option is specified
    • The option to specify the number of seconds can now handle decimal values

An interview article was written about Mackerel’s development process and tools!

Since the launch of the service in September 2014, Mackerel has made consecutive weekly releases (By the way, this week marks 138 weeks straight!). We’ve been receiving many questions about Mackerel’s development process and its flow, but this time we’ve been interviewed by Mr. Shiraishi, a member of the HTML5 Experts.jp editorial department. The article was released today!

html5experts.jp (Japanese only)

Not only does this article talk about Mackerel’s development system and “things to look out for in development”, It also references development environments, tools, and more.

If you’re interested, by all means, check it out!

AWS Integration now supports Lambda

Hey! I can’t believe it’s already March.

In the Kanto region, our first spring storm was on February 17th and I thought that maybe the weather would gradually start to get warmer from there… but I’ve still been wearing my scarf everyday.

Lately, some members of the Mackerel team seem like they can’t stop sneezing and I assumed that they had caught a cold, but it turns out that pollen allergies have started to flare up and they are making people miserable.

Anyways, here is this week’s update information.

AWS Integration now supports Lambda

The highly requested Lambda integration feature has been released.

Please note that, in order to use Lambda integration, you must first grant the AWSLambdaReadOnlyAccess policy to the Integration IAM role.

When integrating with Mackerel, 1 Lambda function is treated as 1 host. Additionally, since tags do not exist in Lambda, narrowing down integration targets is not currently supported. We will consider looking for some way to narrow down Lambda hosts and review the specifications.

For more information on configuration methods, obtainable metrics, and more, check out the following help pages.

mackerel.io

mackerel.io

JAWS DAYS 2017 Lunchtime presentation

We mentioned this last week as well, but Mackerel will be participating as a sponsor at JAWS DAYS 2017 on March 11th (Saturday) and sales engineer id:Soudai will be giving a presentation during the A-track lunchtime session.

The presentation is scheduled to begin at 12:15 p.m. (Time table). We will probably talk about the setup with AWS and some pretty interesting combinations with Mackerel. So look forward to it!

Registering metadata via mackerel-agent is now supported etc.

Hello! Sales engineer id:Soudai here.

Last week, Mackerel ran a booth at the 2017 Developers Summit. I went and it was great to meet so many people!

Anyways, here is this week’s update information.

Registering metadata via mackerel-agent is now supported

Previously, metadata could only be registered from the Web API, but now registering via the agent is supported as well. With this, it is possible to create plugins that output the JSON of your choice to standard output, and have it automatically registered. We’ve provided some examples below. By all means, try them out!

Example uses

Edits to mackerel-agent.conf

Register the created plugin in mackerel-agent.conf

[plugin.metadata.packages]
command = "php metadata-yum-packages.php"

Example JSON output

Examples of plugin output and obtaining actual metadata

// Example JSON for the plugin to register
# php metadata-yum-packages.php | jq
[
  {
    "name": "acl.x86_64",
    "version": "2.2.49-6.11.amzn1"
  },
  {
    "name": "acpid.x86_64",
    "version": "1.0.10-2.1.6.amzn1"
  },
  {
    "name": "alsa-lib.x86_64",
    "version": "1.0.22-3.9.amzn1"
  },
  {
    "name": "apr.x86_64",
    "version": "1.5.1-1.12.amzn1"
  },
  ︙ 
]

// Example output of the registered JSON
# curl -H 'X-Api-Key: ****' https://mackerel.io/api/v0/hosts/****/metadata/packages| jq

[
  {
    "name": "acl.x86_64",
    "version": "2.2.49-6.11.amzn1"
  },
  {
    "name": "acpid.x86_64",
    "version": "1.0.10-2.1.6.amzn1"
  },
  {
    "name": "alsa-lib.x86_64",
    "version": "1.0.22-3.9.amzn1"
  },
  {
    "name": "apr.x86_64",
    "version": "1.5.1-1.12.amzn1"
  },
  ︙ 
]

Plugins and one-liners for registering the content of brew list -versions are beginning to be written even within our company. Please feel free to try it out!

mackerel.io

API Gateway endpoints can now be specified in Webhook requests

Webhooks, one of Mackerel’s notification channels, now supports more certificates. As a result, Amazon API Gateway is now supported. It is also now possible to call AWS Lambda via Amazon API Gateway.

mackerel.io

Abbreviated notification titles are now for email notifications only

In January 27th’s update blog, we announced the feature release of abbreviated titles for notifications including Slack and email that exceed a certain number of characters. This feature has been updated to target email notifications only. Notification titles from Slack and other channels will again be displayed at full length according to the original specifications.

Updates for mackerel-agent and more

  • mackerel-agent 0.40.0

    • The above mentioned metadata registration support was added
    • Refactoring and such were carried out
  • go-check-plugins 0.9.4

    • Writing to temporary files were corrected

Mackerel at JAWS DAYS 2017

Mackerel is set to participate as a sponsor at JAWS DAYS 2017 held on March 11th (Sat.). I’ll be giving a presentation on Mackerel during the lunch session and just like this year’s theme “Link Up!” suggests, I look forward to meeting up and telling you all about the new world through 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

Graph annotations can now be handled in service metric graphs etc.

Last week we announced that Mackerel will be running a booth at the 2017 Developers Summit and the event is quickly approaching!

Developers Summit 2017 エンジニアとして生きる、技術の先にある現実に踏み出す (Japanese only)

Mackerel will be there on both Thursday and Friday (February 16th and 17th) so if you’re planning on attending the event, by all means, stop by!

Graph annotations can now be handled in service metric graphs

Graph annotations, the new feature that was recently introduced at Mackerel Meetup #9, can now be viewed, registered, and edited not only in role graphs, but service metric graphs as well.

There are users who post figures such as sales proceeds and PV numbers as service metrics and I think it’s a good idea to register components such as “Commercial broadcasting start” and “Campaign period” as graph annotations.

Updates for mackerel-agent etc.

Updates have been made for mackerel-agent and more. Details are as follows.

mackerel-agent 0.39.4

  • agent event log was improved to output properly (for Windows)
  • refactoring and such were implemented

mackerel-agent-plugins 0.25.2

  • The mackerel-plugin-aws-rds metric name error was corrected
  • The matter of graph definitions not being created correctly in mackerel-plugin-aws-ses was fixed
  • The matter of metrics not being sent correctly in mackerel-plugin-aws-cloudfront was fixed

go-check-plugins 0.9.3

  • event logs of types Audit Success and Audit Failure can now be specified without spaces like --type=AuditSuccess

mkr 0.14.2

  • A reverse option has been added to the monitors diff command

A huge thanks to everyone who submitted pull requests for each OSS above!