PCA (Prometheus Certified Associate) sample exam question with answer 156
Question:
Which of the following are valid timestamp metrics in PromQL?
- time()
- timestamp()
- unixtime()
- floor()
Answer:
A, B - time() function returns the current Unix timestamp in seconds, whereas timestamp() function returns the Unix timestamp of the sample in seconds since January 1, 1970 UTC