Skip to content

Instantly share code, notes, and snippets.

@irsl
Created October 18, 2021 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save irsl/09f75ca2e1fd4f25526475afb43f7037 to your computer and use it in GitHub Desktop.
Save irsl/09f75ca2e1fd4f25526475afb43f7037 to your computer and use it in GitHub Desktop.
debug/vars output of Cloud SQL healthcheck component
a-128731843257-vm-4e9b0807fdfca294 ~ # curl http://127.0.0.1:8080/debug/vars
{
".googleapis.com/database/healthcheck/response_count-map[response_code:OK url_path:/failover_healthz]": {"M":{"NameSuffix":".googleapis.com/database/healthcheck/response_count","Value":0,"Start":"2021-03-11T12:26:42.381799785Z","End":"2021-03-13T19:36:08.94244291Z","Labels":{"response_code":"OK","url_path":"/failover_healthz"},"Attachment":null},"Type":"int64"},
".googleapis.com/database/healthcheck/response_count-map[response_code:OK url_path:/healthz]": {"M":{"NameSuffix":".googleapis.com/database/healthcheck/response_count","Value":2,"Start":"2021-03-11T12:26:42.381845544Z","End":"2021-03-13T19:36:08.942494034Z","Labels":{"response_code":"OK","url_path":"/healthz"},"Attachment":null},"Type":"int64"},
".googleapis.com/database/healthcheck/response_count-map[response_code:OK url_path:/master_healthz]": {"M":{"NameSuffix":".googleapis.com/database/healthcheck/response_count","Value":264596,"Start":"2021-03-11T12:26:42.38176276Z","End":"2021-03-13T19:36:08.942508516Z","Labels":{"response_code":"OK","url_path":"/master_healthz"},"Attachment":null},"Type":"int64"},
".googleapis.com/database/healthcheck/response_count-map[response_code:OK url_path:/repair_healthz]": {"M":{"NameSuffix":".googleapis.com/database/healthcheck/response_count","Value":0,"Start":"2021-03-11T12:26:42.381871384Z","End":"2021-03-13T19:36:08.942538207Z","Labels":{"response_code":"OK","url_path":"/repair_healthz"},"Attachment":null},"Type":"int64"},
".googleapis.com/database/healthcheck/response_count-map[response_code:OK url_path:/servingz]": {"M":{"NameSuffix":".googleapis.com/database/healthcheck/response_count","Value":299137,"Start":"2021-03-11T12:26:42.381886493Z","End":"2021-03-13T19:36:08.942549289Z","Labels":{"response_code":"OK","url_path":"/servingz"},"Attachment":null},"Type":"int64"},
".googleapis.com/database/healthcheck/response_count-map[response_code:service_unavailable url_path:/failover_healthz]": {"M":{"NameSuffix":".googleapis.com/database/healthcheck/response_count","Value":0,"Start":"2021-03-11T12:26:42.381837563Z","End":"2021-03-13T19:36:08.942560195Z","Labels":{"response_code":"service_unavailable","url_path":"/failover_healthz"},"Attachment":null},"Type":"int64"},
".googleapis.com/database/healthcheck/response_count-map[response_code:service_unavailable url_path:/healthz]": {"M":{"NameSuffix":".googleapis.com/database/healthcheck/response_count","Value":4,"Start":"2021-03-11T12:26:42.381860866Z","End":"2021-03-13T19:36:08.94258063Z","Labels":{"response_code":"service_unavailable","url_path":"/healthz"},"Attachment":null},"Type":"int64"},
".googleapis.com/database/healthcheck/response_count-map[response_code:service_unavailable url_path:/master_healthz]": {"M":{"NameSuffix":".googleapis.com/database/healthcheck/response_count","Value":2,"Start":"2021-03-11T12:26:42.381778049Z","End":"2021-03-13T19:36:08.942588497Z","Labels":{"response_code":"service_unavailable","url_path":"/master_healthz"},"Attachment":null},"Type":"int64"},
".googleapis.com/database/healthcheck/response_count-map[response_code:service_unavailable url_path:/repair_healthz]": {"M":{"NameSuffix":".googleapis.com/database/healthcheck/response_count","Value":0,"Start":"2021-03-11T12:26:42.381880703Z","End":"2021-03-13T19:36:08.94259666Z","Labels":{"response_code":"service_unavailable","url_path":"/repair_healthz"},"Attachment":null},"Type":"int64"},
".googleapis.com/database/healthcheck/response_count-map[response_code:service_unavailable url_path:/servingz]": {"M":{"NameSuffix":".googleapis.com/database/healthcheck/response_count","Value":0,"Start":"2021-03-11T12:26:42.384281043Z","End":"2021-03-13T19:36:08.942604449Z","Labels":{"response_code":"service_unavailable","url_path":"/servingz"},"Attachment":null},"Type":"int64"},
".googleapis.com/database/service/errors-map[reason:couldnt get serving role service_name:healthcheck]": {"M":{"NameSuffix":".googleapis.com/database/service/errors","Value":0,"Start":"2021-03-11T12:26:42.381313101Z","End":"2021-03-13T19:36:08.942612088Z","Labels":{"reason":"couldnt get serving role","service_name":"healthcheck"},"Attachment":null},"Type":"int64"},
".googleapis.com/database/service/errors-map[reason:drop heartbeat update service_name:healthcheck]": {"M":{"NameSuffix":".googleapis.com/database/service/errors","Value":0,"Start":"2021-03-11T12:26:42.381553439Z","End":"2021-03-13T19:36:08.94290623Z","Labels":{"reason":"drop heartbeat update","service_name":"healthcheck"},"Attachment":null},"Type":"int64"},
".googleapis.com/database/service/errors-map[reason:heartbeat read service_name:healthcheck]": {"M":{"NameSuffix":".googleapis.com/database/service/errors","Value":0,"Start":"2021-03-11T12:26:42.380058275Z","End":"2021-03-13T19:36:08.942924929Z","Labels":{"reason":"heartbeat read","service_name":"healthcheck"},"Attachment":null},"Type":"int64"},
".googleapis.com/database/service/errors-map[reason:heartbeat update service_name:healthcheck]": {"M":{"NameSuffix":".googleapis.com/database/service/errors","Value":1,"Start":"2021-03-11T12:26:42.380893182Z","End":"2021-03-13T19:36:08.942933184Z","Labels":{"reason":"heartbeat update","service_name":"healthcheck"},"Attachment":null},"Type":"int64"},
".googleapis.com/database/service/errors-map[reason:systemctl runcmd service_name:healthcheck]": {"M":{"NameSuffix":".googleapis.com/database/service/errors","Value":0,"Start":"2021-03-11T12:26:42.381655108Z","End":"2021-03-13T19:36:08.942941174Z","Labels":{"reason":"systemctl runcmd","service_name":"healthcheck"},"Attachment":null},"Type":"int64"},
".googleapis.com/database/service/gc_policy/avail_gc_percent-map[service_name:healthcheck]": {"M":{"NameSuffix":".googleapis.com/database/service/gc_policy/avail_gc_percent","Value":40,"Start":"2021-03-13T19:36:08.942950491Z","End":"2021-03-13T19:36:08.942950491Z","Labels":{"service_name":"healthcheck"},"Attachment":null},"Type":"int64"},
".googleapis.com/database/service/gc_policy/gc_percent-map[service_name:healthcheck]": {"M":{"NameSuffix":".googleapis.com/database/service/gc_policy/gc_percent","Value":40,"Start":"2021-03-13T19:36:08.942958647Z","End":"2021-03-13T19:36:08.942958647Z","Labels":{"service_name":"healthcheck"},"Attachment":null},"Type":"int64"},
".googleapis.com/database/service/gc_policy/max_heap-map[service_name:healthcheck]": {"M":{"NameSuffix":".googleapis.com/database/service/gc_policy/max_heap","Value":-1,"Start":"2021-03-13T19:36:08.942968081Z","End":"2021-03-13T19:36:08.942968081Z","Labels":{"service_name":"healthcheck"},"Attachment":null},"Type":"int64"},
".googleapis.com/internal/database/healthcheck/block_db_start_count-map[zone:us-central1-f]": {"M":{"NameSuffix":".googleapis.com/internal/database/healthcheck/block_db_start_count","Value":1,"Start":"2021-03-11T12:26:45.628417925Z","End":"2021-03-13T19:36:08.942975467Z","Labels":{"zone":"us-central1-f"},"Attachment":null},"Type":"int64"},
".googleapis.com/internal/database/healthcheck/dbpoller/read_response_count-map[response_code:failed]": {"M":{"NameSuffix":".googleapis.com/internal/database/healthcheck/dbpoller/read_response_count","Value":35,"Start":"2021-03-11T12:26:43.898567577Z","End":"2021-03-13T19:36:08.942983665Z","Labels":{"response_code":"failed"},"Attachment":null},"Type":"int64"},
".googleapis.com/internal/database/healthcheck/dbpoller/read_response_count-map[response_code:success]": {"M":{"NameSuffix":".googleapis.com/internal/database/healthcheck/dbpoller/read_response_count","Value":198452,"Start":"2021-03-11T12:27:19.420598167Z","End":"2021-03-13T19:36:08.942992209Z","Labels":{"response_code":"success"},"Attachment":null},"Type":"int64"},
".googleapis.com/internal/database/healthcheck/dbpoller/write_response_count-map[response_code:failed]": {"M":{"NameSuffix":".googleapis.com/internal/database/healthcheck/dbpoller/write_response_count","Value":8,"Start":"2021-03-11T12:26:47.899492464Z","End":"2021-03-13T19:36:08.942999639Z","Labels":{"response_code":"failed"},"Attachment":null},"Type":"int64"},
".googleapis.com/internal/database/healthcheck/dbpoller/write_response_count-map[response_code:success]": {"M":{"NameSuffix":".googleapis.com/internal/database/healthcheck/dbpoller/write_response_count","Value":39651,"Start":"2021-03-11T12:27:30.925051364Z","End":"2021-03-13T19:36:08.943008067Z","Labels":{"response_code":"success"},"Attachment":null},"Type":"int64"},
".googleapis.com/internal/database/healthcheck/get_serving_role_result_count-map[role:MASTER]": {"M":{"NameSuffix":".googleapis.com/internal/database/healthcheck/get_serving_role_result_count","Value":66186,"Start":"2021-03-11T12:26:43.399961245Z","End":"2021-03-13T19:36:08.943128769Z","Labels":{"role":"MASTER"},"Attachment":null},"Type":"int64"},
".googleapis.com/internal/database/healthcheck/incorrect_master_healthz-map[zone:us-central1-f]": {"M":{"NameSuffix":".googleapis.com/internal/database/healthcheck/incorrect_master_healthz","Value":2,"Start":"2021-03-12T08:16:41.442974028Z","End":"2021-03-13T19:36:08.943154115Z","Labels":{"zone":"us-central1-f"},"Attachment":null},"Type":"int64"},
"cmdline": ["/healthcheck","--logtostderr"],
"memstats": {"Alloc":7898960,"TotalAlloc":19526689072,"Sys":75318304,"Lookups":0,"Mallocs":140345696,"Frees":140315276,"HeapAlloc":7898960,"HeapSys":66355200,"HeapIdle":56623104,"HeapInuse":9732096,"HeapReleased":55525376,"HeapObjects":30420,"StackInuse":753664,"StackSys":753664,"MSpanInuse":101808,"MSpanSys":114688,"MCacheInuse":1184,"MCacheSys":16384,"BuckHashSys":1611079,"GCSys":5887816,"OtherSys":579473,"NextGC":9927052,"LastGC":1615664161484624421,"PauseTotalNs":1229217407,"PauseNs":[141582,103467,105541,90854,98887,148007,99472,147217,103577,126571,88338,165013,91169,94154,98132,110152,122802,118573,99905,73983,113067,83111,142047,126054,99322,98546,77953,114149,136385,90812,70725,101328,92204,120146,161720,110503,78368,109908,84736,123872,140255,101432,71997,112338,104768,111793,116847,75375,102410,131669,144571,132778,165302,91266,102479,93370,158680,146331,110927,77222,105149,117415,112875,116338,114977,93799,77235,112397,144963,119682,244812,114563,108953,117211,139345,489732,104606,1313451,138646,135850,236833,119834,103417,226823,161967,132376,131296,98911,98540,113313,117361,126282,89552,182120,138007,123432,158105,144276,88102,448281,138738,116462,100854,149518,106060,78162,115801,170906,133701,103213,123583,100349,103886,123164,174600,228618,374525,140819,108814,107063,146572,106394,115895,203555,106753,123129,168347,74430,98362,119140,110853,202619,133110,113121,145908,118638,89549,141690,92471,101122,80549,129092,126350,163733,113300,96657,97800,81836,117082,149603,102316,92091,110050,119448,163441,148794,84895,75209,99643,96163,204941,189043,125292,147693,4572021,183047,166610,137703,77812,103701,194848,126478,158756,105790,85935,107941,96955,225063,157669,112750,134066,111545,110651,120120,133691,73894,73292,106144,115222,120400,94528,99062,74863,109266,116590,120419,111997,74179,83138,131914,111758,148706,92187,70220,260918,130209,152253,138781,79658,219103,139063,129474,164907,98632,104096,99597,85407,117449,348401,260319,327961,185638,180970,91714,82085,113767,91653,149909,86034,100583,79702,121576,124089,181831,81538,99506,105095,118122,135535,131987,67270,73906,84825,119304,152932,87741,68716,97048,119560,105833,163737,116690,93639,115429,111329,133333],"PauseEnd":[1615659533243221802,1615659554861856431,1615659575338419220,1615659595384562449,1615659616243506644,1615659637246399711,1615659658232879384,1615659678892247240,1615659699898342212,1615659720255511506,1615659741713194882,1615659763237965742,1615659783811990664,1615659804926651342,1615659825932005000,1615659846937225917,1615659867944641491,1615659888054972961,1615659909956865460,1615659930151373642,1615659951029674707,1615659972249752394,1615659993046510498,1615660012258500318,1615660033265564151,1615660054263431922,1615660075251349591,1615660096266557316,1615660117253421025,1615660138253914702,1615660158671256002,1615660180028372345,1615660200765485062,1615660221139477379,1615660242864607295,1615660264054113306,1615660284955928597,1615660306261771860,1615660327050214078,1615660348081183723,1615660369148270787,1615660390280975027,1615660411250430666,1615660432107423859,1615660453293574194,1615660474269277888,1615660495270152550,1615660516271434021,1615660537138696430,1615660557579090921,1615660579149888817,1615660600275642582,1615660621164023722,1615660641763449437,1615660663178197732,1615660683863209438,1615660704537070548,1615660725965300501,1615660746552583007,1615660768060411576,1615660789208245379,1615660810214269243,1615660831285902693,1615660852260615056,1615660873298981320,1615660894299802184,1615660915289475485,1615660936304303131,1615660957291633288,1615660978307078670,1615660999293724219,1615661020305232038,1615661041294908169,1615661062286345357,1615661083296344901,1615661104355894313,1615661125306764756,1615661146323480183,1615661167315361930,1615661188321223965,1615661209346074954,1615661230334655653,1615661251309275670,1615661271700097542,1615661293320460852,1615661314321991437,1615661335322427939,1615661356319788335,1615661377320600515,1615661398312248986,1615661418740595762,1615661439695690572,1615661459737857548,1615661479792867145,1615661501588477508,1615661521888097798,1615661542339178493,1615661563336028904,1615661584031541963,1615661605355777251,1615661626339580418,1615661647339295175,1615661668237518532,1615661688763048022,1615661710341574935,1615661731330416266,1615661751828209869,1615661773332983979,1615661793811548071,1615661814581146136,1615661835848238937,1615661856677254083,1615661877846272849,1615661898775047499,1615661919871580097,1615661941123054365,1615661961906926148,1615661983224414027,1615662003909507678,1615662025318379901,1615662046367447253,1615662067360915689,1615662088357599968,1615662108931164198,1615662129559258265,1615662149762404200,1615662170770397853,1615662191776652104,1615662212781733353,1615662232431374370,1615662253375445509,1615662273980779459,1615662294987777142,1615662315991496553,1615662336997110047,1615662358001197308,1615662378132365645,1615662400012803852,1615662420228113086,1615662440847414135,1615662462322946091,1615662482857692901,1615662502697872781,1615662523702823155,1615662544389800645,1615662565139218901,1615662586378492793,1615662606655549512,1615662626892116413,1615662647900453735,1615662668903490541,1615662689907496141,1615662709758277651,1615662730394582955,1615662751107904891,1615662771036307524,1615662793085442997,1615662813129934942,1615662833947393195,1615662855227201913,1615662875960276565,1615662895897269594,1615662916403889020,1615662937404502331,1615662958431705072,1615662979411080271,1615663000408965380,1615663021408556986,1615663042396514578,1615663063411114644,1615663084348965700,1615663105355933037,1615663126214043949,1615663147215899371,1615663167923636203,1615663188043667002,1615663210022852656,1615663230078028742,1615663251059399325,1615663272176788493,1615663293071104356,1615663312950337672,1615663333956949770,1615663354369011494,1615663375285572378,1615663396418397792,1615663416513277564,1615663437113723090,1615663458119994062,1615663478656923813,1615663498508158027,1615663519351464902,1615663540419621545,1615663560845983644,1615663581154176190,1615663602946069007,1615663621435440069,1615663642423874758,1615663663424784343,1615663684392389122,1615663705177950525,1615663726402807181,1615663747273232961,1615663767322068622,1615663789376614409,1615663810425167684,1615663831431586792,1615663851895450562,1615663873445317750,1615663893674706779,1615663914244618777,1615663935757959291,1615663955963749491,1615663975851334473,1615663996473451539,1615664017465576528,1615664037995764904,1615664058281649228,1615664079291109103,1615664098503165547,1615664119481068150,1615664140483076286,1615664161484624421,1615658840563136408,1615658861610548209,1615658882580599548,1615658903714301123,1615658925675541937,1615658945818483013,1615658966615261080,1615658987920591967,1615659009707238396,1615659030022749622,1615659050650314068,1615659072118961338,1615659093055155126,1615659114060522815,1615659135741682176,1615659156317840288,1615659177754656152,1615659198422506733,1615659220213236911,1615659240524374471,1615659261778167168,1615659282781612459,1615659304216964033,1615659324714249563,1615659346218924394,1615659366803259642,1615659386865003101,1615659408164595038,1615659428975566625,1615659449818285214,1615659470827500778,1615659492185037869,1615659512844462450],"NumGC":9439,"NumForcedGC":0,"GCCPUFraction":0.00005268289861667263,"EnableGC":true,"DebugGC":false,"BySize":[{"Size":0,"Mallocs":0,"Frees":0},{"Size":8,"Mallocs":2961692,"Frees":2960844},{"Size":16,"Mallocs":48462081,"Frees":48452036},{"Size":32,"Mallocs":14730326,"Frees":14726421},{"Size":48,"Mallocs":15511605,"Frees":15505798},{"Size":64,"Mallocs":5956256,"Frees":5954555},{"Size":80,"Mallocs":4980015,"Frees":4979214},{"Size":96,"Mallocs":15952350,"Frees":15950097},{"Size":112,"Mallocs":2048025,"Frees":2047487},{"Size":128,"Mallocs":913825,"Frees":913427},{"Size":144,"Mallocs":2060428,"Frees":2060100},{"Size":160,"Mallocs":927095,"Frees":926740},{"Size":176,"Mallocs":661749,"Frees":661200},{"Size":192,"Mallocs":1056902,"Frees":1056822},{"Size":208,"Mallocs":1962404,"Frees":1962080},{"Size":224,"Mallocs":1092506,"Frees":1092391},{"Size":240,"Mallocs":92964,"Frees":92915},{"Size":256,"Mallocs":1573368,"Frees":1573122},{"Size":288,"Mallocs":1930069,"Frees":1929872},{"Size":320,"Mallocs":133189,"Frees":133090},{"Size":352,"Mallocs":985053,"Frees":984941},{"Size":384,"Mallocs":265017,"Frees":264766},{"Size":416,"Mallocs":185,"Frees":139},{"Size":448,"Mallocs":430,"Frees":173},{"Size":480,"Mallocs":84246,"Frees":84216},{"Size":512,"Mallocs":1753471,"Frees":1753370},{"Size":576,"Mallocs":1059433,"Frees":1059356},{"Size":640,"Mallocs":102192,"Frees":102134},{"Size":704,"Mallocs":399328,"Frees":399277},{"Size":768,"Mallocs":1687136,"Frees":1687029},{"Size":896,"Mallocs":265143,"Frees":265088},{"Size":1024,"Mallocs":99122,"Frees":99073},{"Size":1152,"Mallocs":529383,"Frees":529323},{"Size":1280,"Mallocs":175,"Frees":136},{"Size":1408,"Mallocs":981,"Frees":916},{"Size":1536,"Mallocs":1587897,"Frees":1587810},{"Size":1792,"Mallocs":44,"Frees":21},{"Size":2048,"Mallocs":99072,"Frees":99053},{"Size":2304,"Mallocs":23,"Frees":9},{"Size":2688,"Mallocs":66328,"Frees":66288},{"Size":3072,"Mallocs":87,"Frees":67},{"Size":3200,"Mallocs":61,"Frees":56},{"Size":3456,"Mallocs":12,"Frees":2},{"Size":4096,"Mallocs":562955,"Frees":562896},{"Size":4864,"Mallocs":66259,"Frees":66241},{"Size":5376,"Mallocs":91,"Frees":66},{"Size":6144,"Mallocs":6694,"Frees":6675},{"Size":6528,"Mallocs":30,"Frees":27},{"Size":6784,"Mallocs":29,"Frees":22},{"Size":6912,"Mallocs":7,"Frees":7},{"Size":8192,"Mallocs":112,"Frees":96},{"Size":9472,"Mallocs":104,"Frees":98},{"Size":9728,"Mallocs":18,"Frees":18},{"Size":10240,"Mallocs":15178,"Frees":15176},{"Size":10880,"Mallocs":21,"Frees":16},{"Size":12288,"Mallocs":6,"Frees":2},{"Size":13568,"Mallocs":7,"Frees":4},{"Size":14336,"Mallocs":1,"Frees":1},{"Size":16384,"Mallocs":7,"Frees":2},{"Size":18432,"Mallocs":3,"Frees":1},{"Size":19072,"Mallocs":6,"Frees":3}]}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment