Skip to content

Commit ef63d56

Browse files
authored
Update haproxy-opentelemetry.md
1 parent 86c6b0a commit ef63d56

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

docs/integrations/web-servers/opentelemetry/haproxy-opentelemetry.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The OpenTelemetry collector runs on the same host as HAProxy, where it uses the
1919

2020
## HAProxy log types
2121

22-
The app supports Logs from the open source version of HAProxy. The App is tested on the 2.3.9 version of HAProxy.
22+
The app supports logs from the open source version of HAProxy. This app is tested on the `2.3.9` version of HAProxy.
2323

2424
The HAProxy logs are generated in files as configured in the configuration file `/etc/haproxy/haproxy.cfg` ([learn more](https://www.haproxy.com/blog/introduction-to-haproxy-logging/)).
2525

@@ -189,6 +189,24 @@ May 13 08:24:43 localhost haproxy[21813]:
189189
27.2.81.92:64274 [13/May/2021:08:24:43.921] web-edupia.vn-4
190190
```
191191
192+
## Sample metrics
193+
194+
```json
195+
{
196+
"Query": "A",
197+
"metric": "avg",
198+
"haproxy.proxy_name": "stats",
199+
"webengine.cluster.name": "haproxy_otel_cluster",
200+
"webengine.node.name": "node1",
201+
"min": 3385124.8,
202+
"max": 3553632,
203+
"latest": 3553632,
204+
"avg": 3469494.86851211,
205+
"sum": 1002684017.0,
206+
"count": 289,
207+
}
208+
```
209+
192210
## Sample queries
193211
194212
### Logs
@@ -224,25 +242,7 @@ sumo.datasource=haproxy metric=haproxy.requests.total status_code=* haproxy.serv
224242
| avg by webengine.cluster.name,webengine.node.name,haproxy.proxy_name,code
225243
```
226244
227-
## Sample metrics
228-
229-
```json
230-
{
231-
"Query": "A",
232-
"metric": "avg",
233-
"haproxy.proxy_name": "stats",
234-
"webengine.cluster.name": "haproxy_otel_cluster",
235-
"webengine.node.name": "node1",
236-
"min": 3385124.8,
237-
"max": 3553632,
238-
"latest": 3553632,
239-
"avg": 3469494.86851211,
240-
"sum": 1002684017.0,
241-
"count": 289,
242-
}
243-
```
244-
245-
## Viewing HAProxy dashboards
245+
## Viewing the HAProxy dashboards
246246
247247
### Overview
248248
@@ -365,8 +365,8 @@ import CreateMonitors from '../../../reuse/apps/create-monitors.md';
365365

366366
| Name | Description | Alert Condition | Recover Condition |
367367
|:--|:--|:--|:--|
368-
| `HAProxy - Access from Highly Malicious Sources` | This alert is triggered when an HAProxy is accessed from highly malicious IP addresses. | Count `>` 0 | Count `<=` 0 |
369-
| `HAProxy - Backend Error` | This alert is triggered when we detect backend server errors. | Count `>` 0 | Count `<=` 0 |
370-
| `HAProxy - Backend Server Down` | This alert is triggered when we detect a backend server for a given HAProxy server is down. | Count `>` 0 | Count `<=` 0 |
371-
| `HAProxy - High Client (HTTP 4xx) Error Rate` | This alert is triggered when there are too many HTTP requests (>5%) with a response status of 4xx. | Count `>` 0 | Count `<=` 0 |
372-
| `HAProxy - High Server (HTTP 5xx) Error Rate` | This alert fires when there are too many HTTP requests (>5%) with a response status of 5xx. | Count `>` 0 | Count `<=` 0 |
368+
| `HAProxy - Access from Highly Malicious Sources` | This alert is triggered when an HAProxy is accessed from highly malicious IP addresses. | Count > 0 | Count < = 0 |
369+
| `HAProxy - Backend Error` | This alert is triggered when backend server error is detected. | Count > 0 | Count < = 0 |
370+
| `HAProxy - Backend Server Down` | This alert is triggered when a backend server for a given HAProxy server is down. | Count > 0 | Count < = 0 |
371+
| `HAProxy - High Client (HTTP 4xx) Error Rate` | This alert is triggered when there are too many HTTP requests (>5%) with a response status of 4xx. | Count > 0 | Count < = 0 |
372+
| `HAProxy - High Server (HTTP 5xx) Error Rate` | This alert fires when there are too many HTTP requests (>5%) with a response status of 5xx. | Count > 0 | Count < = 0 |

0 commit comments

Comments
 (0)