Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 1.04 KB

README.md

File metadata and controls

10 lines (9 loc) · 1.04 KB

What is this repo?

This repo is a sample Spring Boot app that demonstrates OpenCensus metrics in Bigtable/Spanner, and OpenTelemetry metrics in Bigtable

How to run this sample?

This repo is dependent on SNAPSHOT versions of gax, bigtable, spanner and firestore. see relevant changes in gax, bigtable, spanner and firestore.

  1. Enable Cloud Monitoring API
  2. Update project/instance/table ids in SpannerController and BigtableController
  3. Start the app
  4. Navigate to http://localhost:8080/spanner and http://localhost:8080/bigtable for a few read requests
  5. Wait up to 1 minute, the metrics should show up in Cloud Monitoring dashboard on Metrics explorer tab. The relevant metrics are under Global -> Custom metrics -> OpenCensus/cloud/google.com/java/bigtable(or spanner)