github.com/google/cadvisor@v0.49.1/docs/web.md (about)

     1  # cAdvisor Web UI
     2  
     3  cAdvisor exposes a web UI at its port:
     4  
     5  `http://<hostname>:<port>/`
     6  
     7  This UI has one primary resource at `/containers` which exports live information about all containers on the machine.
     8  
     9  ## Web UI authentication
    10  
    11  You can add authentication to the web UI by either HTTP basic or HTTP digest authentication. 
    12  
    13  NOTE: The Web UI authentication only protects the `/containers` endpoint, and not the other cAdvisor HTTP endpoints such as `/api/...` and `/metrics`. Some of these endpoints can expose sensitive information, so it is not advised to expose these endpoints publicly.
    14  
    15  ### HTTP basic authentication
    16  
    17  You will need to add a *http_auth_file* parameter with a HTTP basic auth file generated using htpasswd to enable HTTP basic auth. By default the auth realm is set as localhost.
    18  
    19  `./cadvisor --http_auth_file test.htpasswd --http_auth_realm localhost`
    20  
    21  The [test.htpasswd](../test.htpasswd) file provided has a username and password already added (`admin:password1`) for testing purposes.
    22  
    23  ### HTTP Digest authentication
    24  
    25  You will need to add a *http_digest_file* parameter with a HTTP digest auth file generated using htdigest to enable HTTP Digest auth. By default the auth realm is set as localhost.
    26  
    27  `./cadvisor --http_digest_file test.htdigest --http_digest_realm localhost`
    28  
    29  The [test.htdigest](../test.htdigest) file provided has a username and password already added (`admin:password1`) for testing purposes.
    30  
    31  **Note** : You can use either type of authentication, in case you decide to use both files in the arguments only HTTP basic auth will be enabled.