adjust variable name for readability
Return zero if empty metric repsonse. Use IAM only if no creds file.

    Overloaded commit looks worse than it is due to indentation changes.