Skip to content

Commit f0e5d56

Browse files
chore: regenerate README (#619)
This PR was generated using Autosynth. 🌈 <details><summary>Log from Synthtool</summary> ``` 2021-02-05 20:47:02,858 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-bigtable/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-02-05 20:47:03,749 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ``` </details> Full log will be available here: https://source.cloud.google.com/results/invocations/697a0cf5-def6-45ec-a126-d13bcbd210de/targets - [ ] To automatically regenerate this PR, check this box.
1 parent 7eb6087 commit f0e5d56

File tree

2 files changed

+34
-3
lines changed

2 files changed

+34
-3
lines changed

.github/readme/synth.metadata/synth.metadata

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-bigtable.git",
7-
"sha": "3e8af747b329f6656a410160e8da14fd8227c8fc"
7+
"sha": "7eb60875bb054bd25338325b465550411ebf6a4b"
88
}
99
},
1010
{

README.md

+33-2
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ try {
203203

204204
TIP: If you are experiencing version conflicts with gRPC, see [Version Conflicts](#version-conflicts).
205205

206-
## OpenCensus Tracing
206+
## Client request tracing: OpenCensus Tracing
207207

208208
Cloud Bigtable client supports [OpenCensus Tracing](https://opencensus.io/tracing/),
209209
which gives insight into the client internals and aids in debugging production issues.
@@ -259,6 +259,9 @@ StackdriverTraceExporter.createAndRegister(
259259
.build());
260260
```
261261

262+
You can view the traces on the Google Cloud Platform Console
263+
[Trace](https://console.cloud.google.com/traces) page.
264+
262265
By default traces are [sampled](https://opencensus.io/tracing/sampling) at a rate of about 1/10,000.
263266
You can configure a higher rate by updating the active tracing params:
264267

@@ -273,7 +276,7 @@ Tracing.getTraceConfig().updateActiveTraceParams(
273276
);
274277
```
275278

276-
## OpenCensus Stats
279+
## Enabling Cloud Bigtable Metrics: OpenCensus Stats
277280

278281
Cloud Bigtable client supports [Opencensus Metrics](https://opencensus.io/stats/),
279282
which gives insight into the client internals and aids in debugging production issues.
@@ -376,6 +379,34 @@ BigtableDataSettings.enableOpenCensusStats();
376379
BigtableDataSettings.enableGfeOpenCensusStats();
377380
```
378381

382+
You can view the metrics on the Google Cloud Platform Console
383+
[Metrics explorer](https://console.cloud.google.com/monitoring/metrics-explorer)
384+
page.
385+
386+
You can configure how frequently metrics are pushed to StackDriver and the
387+
[Monitored resource type](https://cloud.google.com/monitoring/api/resources) by
388+
updating `StackdriverStatsConfiguration`:
389+
390+
``` java
391+
// Example: configuring export interval and monitored resource type
392+
StackdriverStatsExporter.createAndRegister(
393+
StackdriverStatsConfiguration.builder()
394+
.setProjectId("YOUR_PROJECT_ID")
395+
// Exporting metrics every 10 seconds
396+
.setExportInterval(Duration.create(10, 0))
397+
// Configure monitored resource type. A common practice is to use the
398+
// monitored resource objects that represent the physical resources
399+
// where your application code is running. See the full list of
400+
// monitored resource type here:
401+
// https://cloud.google.com/monitoring/api/resources
402+
.setMonitoredResource(MonitoredResource.newBuilder()
403+
.setType("global")
404+
.putLabels("project_id", "YOUR_PROJECT_ID")
405+
.build())
406+
.build()
407+
);
408+
```
409+
379410
## Version Conflicts
380411

381412
google-cloud-bigtable depends on gRPC directly which may conflict with the versions brought

0 commit comments

Comments
 (0)