The mackerel-client package

[Tags:library, mit, test]

This library provides bindings to Mackerel APIs.

The official site of Mackerel: The reference of Mackerel API:

[Skip to Readme]


Versions 0.0.0, 0.0.1, 0.0.2, 0.0.3, 0.0.4
Dependencies aeson, base (>=4.9 && <5.0), bytestring, data-default, directory, filepath, htoml, http-client, http-client-tls, http-types, parsec, split, text, unordered-containers [details]
License MIT
Author itchyny
Maintainer itchyny <>
Category Web
Home page
Source repository head: git clone
Uploaded Thu Mar 23 16:24:28 UTC 2017 by itchyny
Distributions NixOS:0.0.4
Downloads 150 total (15 in the last 30 days)
0 []
Status Docs available [build log]
Last success reported on 2017-03-23 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees

Readme for mackerel-client

Readme for mackerel-client-0.0.4

mackerel-client-hs Build Status

An API client library for Mackerel.

API documents: Mackerel API Documents (v0)

The official Go client library: mackerel-client-go


import Data.Default
import Web.Mackerel

main :: IO ()
main = do
  let client = def { apiKey = "<Mackerel-API-KEY>" }

  print =<< getOrganization client
  print =<< listUsers client

  print =<< listHosts client def { listHostsParamsService = Just "servicename", listHostsParamsRoles = ["role1", "role2"] }

  print =<< listMonitors client
  print =<< updateMonitor client monitor { monitorName = "Monitor name renamed" }
  print =<< deleteMonitor client (MonitorId "<Monitor-ID>")

  print =<< listAlerts client
  print =<< closeAlert client (AlertId "<Alert-ID>") "this is not an important alert"


itchyny (


This software is released under the MIT License, see LICENSE.