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.
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>
-
Update the version in
build.gradle
. -
Commit and push code
-
Build jar
./gradlew shadowJar
-
Create a tag with the version and push it
git tag v<major>.<minor>.<patch> git push origin v<major>.<minor>.<patch>
-
Add release and upload the jar file
-
update the jar download link in
README.md