Skip to content

GreptimeCloudStarters/quick-start-java

Repository files navigation

Introduction

This is a quick start demo for GreptimeCloud. It collects JVM runtime metrics through Opentelemetry and sends the metrics to GreptimeCloud. You can view the metrics on the GreptimeCloud dashboard.

Quick Start

You can just download and run the jar file:

curl -L https://github.com/GreptimeCloudStarters/quick-start-java/releases/latest/download/greptime-quick-start-java-all.jar --output quick-start.jar
java -jar quick-start.jar -e <endpoint-url> -db <dbname> -u <username> -p <password>

Clone the repository and run:

./gradlew run --args="-e <endpoint-url> -db <dbname> -u <username> -p <password>"

Or build a jar file by yourself and run:

./gradlew shadowJar
java -jar build/libs/greptime-quick-start-java-all.jar -e <endpoint-url> -db <dbname> -u <username> -p <password>

Release

  1. Update the version in build.gradle.

  2. Commit and push code

  3. Build jar

    ./gradlew shadowJar
  4. Create a tag with the version and push it

    git tag v<major>.<minor>.<patch>
    git push origin v<major>.<minor>.<patch>
  5. Add release and upload the jar file

  6. update the jar download link in README.md