K
All community tools Terraform Provider Python SDK Prometheus Exporter Go Client

Go Client

A Go client library for the Hyperping API. This is the shared foundation that powers both the Terraform provider and the Prometheus exporter.

Built and maintained by Develeap. Source code on GitHub.

Installation

go get github.com/develeap/hyperping-go

Usage

package main

import (
    "context"
    "fmt"
    "log"

    hyperping "github.com/develeap/hyperping-go"
)

func main() {
    client := hyperping.NewClient("sk_...")

    monitors, err := client.ListMonitors(context.Background())
    if err != nil {
        log.Fatal(err)
    }

    for _, m := range monitors {
        fmt.Printf("%s: down=%v\n", m.Name, m.Down)
    }
}

When to use

Most users will interact with Hyperping through the Terraform provider or the Python SDK rather than using the Go client directly. The Go client is useful when you are:

  • Building custom Go tooling that integrates with Hyperping
  • Contributing to the Terraform provider or Prometheus exporter
  • Writing Go services that need to read or manage monitors programmatically

Links