Skip to content

GreptimeCloudStarters/quick-start-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is a quick start demo for GreptimeDB and GreptimeCloud. It collects the system metric data such as CPU and memory usage through Opentelemetry and sends the metrics to GreptimeDB.

Quick Start

Use the following command line to start sending metrics without cloning the project:

go run github.com/GreptimeCloudStarters/quick-start-go@latest -endpoint=<endpoint-url> -db=<dbname> -username=<username> -password=<password>

Or clone the project and run the following command line:

go run . -endpoint=<endpoint-url> -db=<dbname> -username=<username> -password=<password>

Release

  1. Update the version in app.go.

  2. Commit and push code.

  3. Create a tag with the version and push it to the remote repository.

    git tag v<major>.<minor>.<patch>
    git push origin v<major>.<minor>.<patch>
  4. Update pkg.go.dev via GOPROXY=proxy.golang.org go list -m github.com/GreptimeCloudStarters/quick-start-go@v<major>.<minor>.<patch>

  5. Write change log in Github Release.