Welcome to the Linux Foundation Forum!

[Lab 9.1] do we need to modify the code?

In the python version, it seems that only 404 responses are sent:

class Handler(BaseHTTPRequestHandler):
    def do_GET(self):
        ROUTES.get(self.path, handler_404)(self)

Do we need to modify the code? The self.path variable is always "/metrics"


  • Nothing to do, but there is a typo p. 51:

    sum without(cpu) rate(node_cpu_seconds_total{job="node"}[1m])

    takes another set of parens


Upcoming Training