Skip to content

Commit 21ab942

Browse files
fanzy618zhangzujian
andcommitted
Apply suggestions from code review
Co-authored-by: 张祖建 <[email protected]>
1 parent de91ce9 commit 21ab942

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/en/solutions/How_to_Disable_Calico_Node_Metrics_Port.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Examples (choose a method that fits your environment and security policies):
6565
* Use `ss` or `netstat` to confirm that nothing is listening on `:9091`:
6666

6767
```bash
68-
ss -lntp | grep 9091 || echo "port 9091 is not listening"
68+
ss -lntp | grep ':9091[[:space:]]\+' || echo "port 9091 is not listening"
6969
```
7070

7171
2. **From within the cluster**
@@ -105,7 +105,7 @@ If the value is `true` or the variable is not explicitly set (and metrics are kn
105105
On a node that runs `calico-node`, check for a listener on port `9091`:
106106

107107
```bash
108-
ss -lntp | grep 9091
108+
ss -lntp | grep ':9091[[:space:]]\+'
109109
```
110110

111111
If a process associated with `calico-node` or Felix is listening on `:9091`, the metrics endpoint is active.

0 commit comments

Comments
 (0)