This repo is a sample Spring Boot app that demonstrates OpenCensus metrics in Bigtable/Spanner, and OpenTelemetry metrics in Bigtable
This repo is dependent on SNAPSHOT versions of gax, bigtable, spanner and firestore. see relevant changes in gax, bigtable, spanner and firestore.
- Enable Cloud Monitoring API
- Update project/instance/table ids in SpannerController and BigtableController
- Start the app
- Navigate to http://localhost:8080/spanner and http://localhost:8080/bigtable for a few read requests
- 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)