Welcome to the Linux Foundation Forum!

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

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

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

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

Answers

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

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

    takes another set of parens

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training