Skip to content

Commit f3eaaab

Browse files
authored
Update README.md
1 parent c4b2365 commit f3eaaab

File tree

1 file changed

+37
-19
lines changed

1 file changed

+37
-19
lines changed

README.md

+37-19
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ format. You can do like this:
147147
/status?format=html
148148
/status?format=csv
149149
/status?format=json
150+
/status?format=prometheus
150151

151152
At present, you can fetch the list of servers with the same status by
152153
the argument of `status`. For example:
@@ -159,25 +160,42 @@ Below it's the sample html page:
159160
```xml
160161
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN
161162
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
162-
<title>Nginx http upstream check status</title>
163-
<h1>Nginx http upstream check status</h1>
164-
<h2>Check upstream server number: 1, generation: 3</h2>
165-
<th>Index</th>
166-
<th>Upstream</th>
167-
<th>Name</th>
168-
<th>Status</th>
169-
<th>Rise counts</th>
170-
<th>Fall counts</th>
171-
<th>Check type</th>
172-
<th>Check port</th>
173-
<td>0</td>
174-
<td>backend</td>
175-
<td>106.187.48.116:80</td>
176-
<td>up</td>
177-
<td>39</td>
178-
<td>0</td>
179-
<td>http</td>
180-
<td>80</td>
163+
<html xmlns="http://www.w3.org/1999/xhtml">
164+
<head>
165+
<title>Nginx http upstream check status</title>
166+
</head>
167+
<body>
168+
<h1>Nginx http upstream check status</h1>
169+
<h2>Check upstream server number: 1, generation: 3</h2>
170+
<table style="background-color:white" cellspacing="0"
171+
cellpadding="3" border="1">
172+
<tr bgcolor="#C0C0C0">
173+
<th>Index</th>
174+
<th>Upstream</th>
175+
<th>Name</th>
176+
<th>Status</th>
177+
<th>Rise counts</th>
178+
<th>Fall counts</th>
179+
<th>Check type</th>
180+
<th>Check port</th>
181+
<th>Uptime or First failure since</th>
182+
<th>Elapse in seconds</th>
183+
</tr>
184+
<tr>
185+
<td>0</td>
186+
<td>backend</td>
187+
<td>106.187.48.116:80</td>
188+
<td>up</td>
189+
<td>39</td>
190+
<td>0</td>
191+
<td>http</td>
192+
<td>80</td>
193+
<td></td>
194+
<td></td>
195+
</tr>
196+
</table>
197+
</body>
198+
</html>
181199
```
182200

183201
Below it's the sample of `csv` page:

0 commit comments

Comments
 (0)