Performance Analyzer API

    Performance Analyzer uses a single HTTP method and URI for most requests:

    For a full list of metrics, see Metrics reference. Performance Analyzer updates its data every five seconds. If you create a custom client, we recommend using that same interval for calls to the API.

    Sample request

    Sample response

    1. {
    2. "keHlhQbbTpm1BYicficEQg": {
    3. "timestamp": 1554940530000,
    4. "data": {
    5. "fields": [{
    6. "name": "ShardID",
    7. "type": "VARCHAR"
    8. },
    9. {
    10. "name": "Latency",
    11. "type": "DOUBLE"
    12. },
    13. {
    14. "name": "CPU_Utilization",
    15. "type": "DOUBLE"
    16. }
    17. ],
    18. "records": [
    19. [
    20. null,
    21. null,
    22. 0.012552206029147535
    23. ],
    24. [
    25. "1",
    26. 4.8,
    27. 0.0009780939762972104
    28. ]
    29. ]
    30. }
    31. },
    32. "bHdpbMJZTs-TKtZro2SmYA": {
    33. "timestamp": 1554940530000,
    34. "data": {
    35. "fields": [{
    36. "name": "ShardID",
    37. "type": "VARCHAR"
    38. },
    39. {
    40. "name": "Latency",
    41. "type": "DOUBLE"
    42. {
    43. "name": "CPU_Utilization",
    44. "type": "DOUBLE"
    45. ],
    46. "records": [
    47. [
    48. null,
    49. 18.2,
    50. 0.011966493817311527
    51. ],
    52. [
    53. "1",
    54. 14.8,
    55. 0.0007670829370071493
    56. ]
    57. ]
    58. }
    59. }
    60. }

    Performance Analyzer has one additional URI that returns the unit for each metric.

    Sample request

    Sample response

    1. {
    2. "Disk_Utilization": "%",
    3. "Cache_Request_Hit": "count",
    4. "HTTP_RequestDocs": "count",
    5. "Net_TCP_Lost": "segments/flow",
    6. "Refresh_Time": "ms",
    7. "GC_Collection_Event": "count",
    8. "Merge_Time": "ms",
    9. "Sched_CtxRate": "count/s",
    10. "Cache_Request_Size": "B",
    11. "ThreadPool_QueueSize": "count",
    12. "Sched_Runtime": "s/ctxswitch",
    13. "Disk_ServiceRate": "MB/s",
    14. "Heap_AllocRate": "B/s",
    15. "Heap_Max": "B",
    16. "Sched_Waittime": "s/ctxswitch",
    17. "ShardBulkDocs": "count",
    18. "Thread_Blocked_Time": "s/event",
    19. "VersionMap_Memory": "B",
    20. "Master_Task_Queue_Time": "ms",
    21. "Merge_CurrentEvent": "count",
    22. "Indexing_Buffer": "B",
    23. "Bitset_Memory": "B",
    24. "Net_PacketDropRate4": "packets/s",
    25. "Heap_Committed": "B",
    26. "Net_PacketDropRate6": "packets/s",
    27. "GC_Collection_Time": "ms",
    28. "Cache_Query_Miss": "count",
    29. "Latency": "ms",
    30. "Net_PacketRate6": "packets/s",
    31. "Cache_Query_Hit": "count",
    32. "IO_ReadSyscallRate": "count/s",
    33. "Net_PacketRate4": "packets/s",
    34. "Cache_Request_Miss": "count",
    35. "CB_ConfiguredSize": "B",
    36. "CB_TrippedEvents": "count",
    37. "ThreadPool_RejectedReqs": "count",
    38. "Disk_WaitTime": "ms",
    39. "Net_TCP_TxQ": "segments/flow",
    40. "Master_Task_Run_Time": "ms",
    41. "IO_WriteSyscallRate": "count/s",
    42. "IO_WriteThroughput": "B/s",
    43. "Flush_Event": "count",
    44. "Net_TCP_RxQ": "segments/flow",
    45. "Refresh_Event": "count",
    46. "Flush_Time": "ms",
    47. "Heap_Init": "B",
    48. "CPU_Utilization": "cores",
    49. "HTTP_TotalRequests": "count",
    50. "ThreadPool_ActiveThreads": "count",
    51. "Cache_Query_Size": "B",
    52. "Paging_MinfltRate": "count/s",
    53. "Merge_Event": "count",
    54. "Net_TCP_SendCWND": "B/flow",
    55. "Cache_Request_Eviction": "count",
    56. "Segments_Total": "count",
    57. "Heap_Used": "B",
    58. "Cache_FieldData_Eviction": "count",
    59. "IO_TotalSyscallRate": "count/s",
    60. "CB_EstimatedSize": "B",
    61. "Net_Throughput": "B/s",
    62. "Paging_RSS": "pages",
    63. "Indexing_ThrottleTime": "ms",
    64. "IndexWriter_Memory": "B",
    65. "Master_PendingQueueSize": "count",
    66. "Net_TCP_SSThresh": "B/flow",
    67. "Cache_FieldData_Size": "B",
    68. "Paging_MajfltRate": "count/s",
    69. "ThreadPool_TotalThreads": "count",
    70. "IO_ReadThroughput": "B/s",
    71. "ShardEvents": "count",
    72. }