Registry /
cloud / mackerelio-mackerel-client-go
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
mackerel
✓ github.com/mackerelio/mackerel-client-go
Create a Mackerel client and list hosts
package main
import (
"fmt"
"github.com/mackerelio/mackerel-client-go"
)
func main() {
client := mackerel.NewClient("YOUR_API_KEY")
hosts, _ := client.FindHosts(&mackerel.FindHostsParam{})
fmt.Println(hosts)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.41.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.