Bird
0
0

After running this command:

medium📝 Troubleshoot Q6 of 15
GCP - Cloud Monitoring and Logging
After running this command:
gcloud monitoring metrics list --filter="metric.type=compute.googleapis.com/instance/disk/read_bytes_count"

you receive an error stating the metric type is invalid. What is the most probable reason?
AThe metric type specified does not exist or is misspelled
BYou lack permissions to list metrics in the project
CThe gcloud CLI is not installed correctly
DThe project has no active billing account
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the error message

    An invalid metric type error usually means the metric name is incorrect or does not exist.
  2. Step 2: Check the metric type

    The metric type 'compute.googleapis.com/instance/disk/read_bytes_count' is not a valid metric name in Cloud Monitoring.
  3. Step 3: Consider other options

    Permission issues or billing problems typically cause different errors, and CLI installation errors would prevent command execution.
  4. Final Answer:

    The metric type specified does not exist or is misspelled -> Option A
  5. Quick Check:

    Invalid metric errors usually mean wrong metric name [OK]
Quick Trick: Invalid metric errors mean metric name is wrong [OK]
Common Mistakes:
  • Assuming permission issues cause invalid metric errors
  • Ignoring typos in metric type names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes