var lookup = {},
    result = [];

JSON.parse(value).forEach(function (item) {
    if (item.name === "apiserver_client_certificate_expiration_seconds_count"){
        result.push({
            '{#TYPE}': 'totals',
            '{#SINGLETON}': ''
        });

      }
    else if  (item.name === "apiserver_client_certificate_expiration_seconds_bucket"){
        result.push({
            '{#TYPE}': 'buckets',
            '{#LE}': item.labels.le
        });
    }
});

return JSON.stringify(result);