GoogleCloudPlatform / opentsdb-bigtable

Apache License 2.0
28 stars 23 forks source link

OpenTsDB API Issue #16

Closed Rokshan2016 closed 3 years ago

Rokshan2016 commented 3 years ago

Hi @varundhussa

I used this opentsdb-bigtable wrapper and able to install opentsdb in GCP environment. But I am getting the following issues while retrieving the data back from bigtable through opentsdb API

  1. For a new environment, I need to insert at-least 3000 records before I could use this query API api/query?start=2h-ago&m=sum:ppc.event.alert&show_tsuids=true

  2. Then, for each metric I need to insert at least 10 record to get the result through API

I tried to use this configuration but did not change anything. tsd.storage.flush_interval=1000

We are trying to use this for our production environment, any suggestion will be really helpful. Thanks!

varundhussa commented 3 years ago

Try adding google.bigtable.bulk.autoflush.ms = 1000

Rokshan2016 commented 3 years ago

Thanks, will try.

Rokshan2016 commented 3 years ago

@varundhussa Its fixed :). Where is this configuration documented ?

Thanks!

varundhussa commented 3 years ago

The Bigtable client configurations can be found here: https://cloud.google.com/bigtable/docs/hbase-client/javadoc/constant-values

Rokshan2016 commented 3 years ago

Great! thanks for the help @varundhussa .