What dimension is the import_processing_time metric?

While exploring the metrics of SGW I wonder what dimension import_processing_time is?

For example, I have

 "shared_bucket_import": {
                    "import_count": 70641,
                    "import_cancel_cas": 0,
                    "import_error_count": 0,
                    "import_processing_time": 241984529230,
                    "import_high_seq": 4131568,
                    "import_partitions": 8
                }

In order to get the average time for one import operation I divide import_processing_time by import_count, in this case getting a number of 3,425,553… what does that tell me? Nanoseconds? Milliseconds?

It is nanoseconds; or about 3.4 ms per document.

Ref:
https://github.com/couchbase/sync_gateway/blob/edb1a6cbd2b7ec95e4d400e84f221f8fc856fece/db/import.go#L333

HTH.

1 Like