Until now, however, all API keys had write permission and there were several areas where security was weak.

fear of accidentally doing an update operation

fear of improper operations being done due to a leak of information

Of course is was possible before as well to delete API keys in the event of a breach in security, but there was the potential threat of improper actions being taken by a malicious third party before an information leak is recognized.

When using custom dashboards there may be a time when you want to display each metric graph of a host belonging to a role in a service, but to paste all of those graphs into the custom dashboard manually would end up taking a long time.

If designating the target services and roles, as well as the time spans of the graphs that will be displayed, it’s possible to automatically generate Markdown that will display embedded metrics graphs.

$ mdg -o Saba -s Saba-service -r db

Designating the service and other information in the option as shown above and executing will generate the following Markdown.

APIs used

Automatic creation of server management register

Using the API, you can create a chart of the information of the hosts you are managing in each role and service.
Below is an example of a chart made with Google Spreadsheets.

In this example we are getting the information of the hosts being managed using Google Apps Script and creating a list.
Also, by using Google Spreadsheets, automatically displaying statistical information is also possible.

The freedom to combine Mackerel with other software can be taken advantage of in many ways such as creating written reports or for getting an overview of large numbers of hosts that will increase as your company continues to grow.

APIs used

Review

With the addition of read-only API keys and service and role APIs, Mackerel’s API is now safer and easier to use than ever.

In addition to the APIs which were introduced, we are also offering APIs to handle metrics and monitor settings. Of course we are also offering APIs used to carry out update operations using API keys with write permissions. For more information please refer to the API specs