github.com/hspak/nomad@v0.7.2-0.20180309000617-bc4ae22a39a5/website/source/guides/ui.html.md (about)

     1  ---
     2  layout: "guides"
     3  page_title: "Web UI"
     4  sidebar_current: "guides-ui"
     5  description: |-
     6    The Nomad Web UI is a great companion for both operators and developers.
     7    It is an easy to use way to inspect jobs, allocations, and nodes.
     8  ---
     9  
    10  # Web UI
    11  
    12  The Nomad Web UI offers an easy to use web experience for inspecting a Nomad cluster.
    13  Jobs, Deployments, Task Groups, Allocations, Clients, and Servers can all be
    14  monitored from the Web UI. The Web UI also supports the use of ACL tokens for
    15  clusters that are using the [ACL system](/guides/acl.html).
    16  
    17  ## Accessing the Web UI
    18  
    19  The Web UI is served on the same address and port as the HTTP API. It is namespaced
    20  under `/ui`, but visiting the root of the Nomad server in your browser will redirect you
    21  to the Web UI. If you are unsure what port the Nomad HTTP API is running under, try the default
    22  port, `4646`.
    23  
    24  ~> **Live Demo!** For a quick test drive, see our online Web UI demo at [demo.nomadproject.io](https://demo.nomadproject.io). 
    25  
    26  ## Reviewing Jobs
    27  
    28  The home page of the Web UI is the jobs list view. This page has a searchable, sortable,
    29  paginated table of all jobs in the cluster, regardless of job status.
    30  
    31  [![Jobs List][img-jobs-list]][img-jobs-list]
    32  
    33  To sort the table, click a table column's header cell. To search, type a query into the searchbox.
    34  By default the search will fuzzy-match any job name, but by starting a query with a `/`, the search
    35  will instead be based on a regular expression.
    36  
    37  Sort property, sort direction, search term, and page number are all stored as query params to make
    38  sharing links easier.
    39  
    40  In addition to name, each job in the table includes details such as current status, type, priority,
    41  number of task groups, and an aggregation of all allocations by allocation status.
    42  
    43  [![Job Row Detail][img-jobs-row-detail]][img-jobs-row-detail]
    44  
    45  ## Inspecting a Job
    46  
    47  Clicking on a job will navigate to the Job Detail page. This page shows a list of task groups
    48  for the job as well as the status of each allocation for each task group by allocation status.
    49  
    50  [![Job Detail][img-job-detail]][img-job-detail]
    51  
    52  ### Reading a Job Definition
    53  
    54  The Job Detail page has multiple tabs, one of which is Definition. On the Definition page, the full
    55  job definition is shown as an interactive JSON object.
    56  
    57  [![Job Definition][img-job-definition]][img-job-definition]
    58  
    59  ### Reviewing Past Job Versions
    60  
    61  Job Versions can be found on the Versions tab on the Job Detail page. This page has a timeline view of
    62  every tracked version for the job.
    63  
    64  [![Job Versions][img-job-versions]][img-job-versions]
    65  
    66  Each version can be toggled to also show the diff between job versions.
    67  
    68  [![Job Version Diff][img-job-version-diff]][img-job-version-diff]
    69  
    70  ### Reviewing Past Job Deployments
    71  
    72  Job Deployments are listed on the Deployments tab on the Job Detail page. Every tracked deployment is listed in
    73  a timeline view.
    74  
    75  [![Job Deployments][img-job-deployments]][img-job-deployments]
    76  
    77  Each deployment can be toggle to show information about the deployment, including canaries placed and desired,
    78  allocations placed and desired, healthy and unhealthy allocations, task group metrics, and existing allocations.
    79  
    80  [![Job Deployment Detail][img-job-deployment-detail]][img-job-deployment-detail]
    81  
    82  ### Monitoring a Current Job Deployment
    83  
    84  When a deployment is currently running, it is called out on the Job Detail Overview tab.
    85  
    86  [![Active Job Deployment][img-active-job-deployment]][img-active-job-deployment]
    87  
    88  ## Inspecting a Task Group
    89  
    90  Clicking on a task group from the Job Detail page will navigate to the Task Group Detail page. This page shows
    91  the aggregated resource metrics for a task group as well as a list of all associated allocations.
    92  
    93  [![Task Group Detail][img-task-group-detail]][img-task-group-detail]
    94  
    95  ## Inspecting an Allocation
    96  
    97  From the Task Group Detail page, each allocation in the allocations table will report basic information about
    98  the allocation, including utilized CPU and memory.
    99  
   100  [![Allocation Stats][img-allocation-stats]][img-allocation-stats]
   101  
   102  ~> **Note.** To collect current CPU and memory statistics, the Web UI makes requests directly to the client
   103  ~> the allocation is running on. These requests will fail unless the browser session is running in the same
   104  ~> subnet as the Nomad client.
   105  
   106  Clicking an allocation will navigate to the Allocation Detail page. From here, the event history for each task
   107  in the allocation can be seen.
   108  
   109  [![Allocation Detail][img-allocation-detail]][img-allocation-detail]
   110  
   111  ## Reviewing Clients
   112  
   113  Clicking the Clients link in the left-hand menu of the Web UI will navigate to the Clients List page. This page
   114  has a searchable, sortable, paginated table of all clients in the cluster.
   115  
   116  Sort property, sort direction, search term, and page number are all stored as query params to make
   117  sharing links easier.
   118  
   119  In addition to name, each client in the table includes details such as current status, address, datacenter,
   120  and number of allocations.
   121  
   122  [![Clients List][img-clients-list]][img-clients-list]
   123  
   124  ## Inspecting a Client
   125  
   126  Clicking on a client will navigate to the Client Detail page. This page shows the status of the client as
   127  well as the list of all allocations placed on the client. Additionally, all attributes of the machine are
   128  itemized.
   129  
   130  [![Client Detail][img-client-detail]][img-client-detail]
   131  
   132  ## Inspecting Servers
   133  
   134  Clicking on the Servers link in the left-hand menu of the Web UI will navigate to the Servers List page. This
   135  page lists all servers, including which one is the current leader.
   136  
   137  Clicking on a server in the list will open up a table that lists the Tags for the server.
   138  
   139  [![Server Detail][img-server-detail]][img-server-detail]
   140  
   141  ## Using an ACL Token
   142  
   143  When the ACL system is enabled for the cluster, tokens can be used to gain elevated permissions to see
   144  otherwise private jobs, nodes, and other details. To register a token with the Web UI, click ACL Tokens on the
   145  right-hand side of the top navigation.
   146  
   147  The ACL Tokens page has a two field form for providing a token Secret ID and token Accessor ID. The form
   148  automatically updates as the values change, and once a Secret ID is provided, all future HTTP requests the
   149  Web UI makes will provide the Secret ID as the ACL Token via the `X-Nomad-Token` request header.
   150  
   151  [![ACL Tokens][img-acl-tokens]][img-acl-tokens]
   152  
   153  [img-jobs-list]: /assets/images/guide-ui-jobs-list.png
   154  [img-jobs-row-detail]: /assets/images/guide-ui-jobs-row-detail.png
   155  [img-job-detail]: /assets/images/guide-ui-job-detail.png
   156  [img-job-definition]: /assets/images/guide-ui-job-definition.png
   157  [img-job-versions]: /assets/images/guide-ui-job-versions.png
   158  [img-job-version-diff]: /assets/images/guide-ui-job-version-diff.png
   159  [img-job-deployments]: /assets/images/guide-ui-job-deployments.png
   160  [img-job-deployment-detail]: /assets/images/guide-ui-job-deployment-detail.png
   161  [img-active-job-deployment]: /assets/images/guide-ui-active-job-deployment.png
   162  [img-task-group-detail]: /assets/images/guide-ui-task-group-detail.png
   163  [img-allocation-stats]: /assets/images/guide-ui-allocation-stats.png
   164  [img-allocation-detail]: /assets/images/guide-ui-allocation-detail.png
   165  [img-clients-list]: /assets/images/guide-ui-clients-list.png
   166  [img-client-detail]: /assets/images/guide-ui-client-detail.png
   167  [img-server-detail]: /assets/images/guide-ui-server-detail.png
   168  [img-acl-tokens]: /assets/images/guide-ui-acl-tokens.png