Go SDK

A Go Client for GreptimeDB, which is compatible with GreptimeDB protocol and lightweight.

Features

  • Concurrent safe
  • Non-blocking
  • Easy to use with Metric and Series struct
  • Support Sql and PromQL in querying

How to use

Please refer to User Guide chapter to learn how to insall SDK, write data and query data.

Configuration

NameDescription
HostGreptimeDB server host
PortDefault is 4001
UsernameLeave the field empty if connecting a database without authentication
PasswordLeave the field empty if connecting a database without authentication
DatabaseDefault database to operate on

Usage Examples

For fully runnable code snippets and explanations for common methods, see the Examples.

API

Please refer to API Document.