Skip to content

Commit

Permalink
Merge pull request #1296 from marquiz/docs/metrics
Browse files Browse the repository at this point in the history
docs: document -metrics flag in command line reference
  • Loading branch information
k8s-ci-robot committed Aug 5, 2023
2 parents 6caf554 + 4b7ee47 commit 9ed1918
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/reference/master-commandline-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,20 @@ Example:
nfd-master -port=443
```

### -metrics

The `-metrics` flag specifies the port on which to expose
[Prometheus](https://prometheus.io/) metrics. Setting this to 0 disables the
metrics server on nfd-master.

Default: 8081

Example:

```bash
nfd-master -metrics=12345
```

### -instance

The `-instance` flag makes it possible to run multiple NFD deployments in
Expand Down
14 changes: 14 additions & 0 deletions docs/reference/worker-commandline-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,20 @@ Example:
nfd-worker -enable-nodefeature-api
```

### -metrics

The `-metrics` flag specifies the port on which to expose
[Prometheus](https://prometheus.io/) metrics. Setting this to 0 disables the
metrics server on nfd-worker.

Default: 8081

Example:

```bash
nfd-worker -metrics=12345
```

### -no-publish

The `-no-publish` flag disables all communication with the nfd-master and the
Expand Down

0 comments on commit 9ed1918

Please sign in to comment.