-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #223 from sysdiglabs/staging
Staging Y22W23
- Loading branch information
Showing
26 changed files
with
4,420 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: App | ||
name: "php-fpm" | ||
keywords: | ||
- PHP | ||
- Available | ||
availableVersions: | ||
- '7.2' | ||
shortDescription: "PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites." | ||
description: | | ||
PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites. | ||
icon: https://raw.githubusercontent.com/sysdiglabs/promcat-resources/master/apps/images/PHP-FPM.svg | ||
website: https://www.php.net/manual/en/book.fpm.php | ||
available: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
# Alerts | ||
## UpTimeLessThan1Hour | ||
This alert detects when all of the instances of the ingress controller have an uptime of less tha 1 hour. | ||
## [Haproxy-Ingress] Uptime less than 1 hour | ||
This alert detects when all of the instances of the ingress controller have an uptime of less than 1 hour. | ||
|
||
## FrontendDown | ||
## [Haproxy-Ingress] Frontend Down | ||
This alert detects when a frontend has all of its instances down for more than 10 minutes. | ||
|
||
## BackendDown | ||
## [Haproxy-Ingress] Backend Down | ||
This alert detects when a backend has all of its instances down for more than 10 minutes. | ||
|
||
## HighSessionsUsage | ||
## [Haproxy-Ingress] High Sessions Usage | ||
This alert triggers when the backend sessions overpass the 85% of the sessions capacity for 10 minutes. | ||
|
||
## HigErrorRate | ||
This alert triggers when the is an error rate over 15% for over 10 minutes in a proxy. | ||
## [Haproxy-Ingress] High Error Rate | ||
This alert triggers when there is an error rate over 15% for over 10 minutes in a proxy. | ||
|
||
## HighRequestDeniedRate and HighResponseDeniedRate | ||
These alerts detect when there is a denied rate of requests or responses over 10% for over 10 minutes in a proxy. | ||
## [Haproxy-Ingress] High Request Denied Rate | ||
These alerts detect when there is a denied rate of requests over 10% for over 10 minutes in a proxy. | ||
|
||
## HighResponseTime | ||
## [Haproxy-Ingress] High Response Denied Rate | ||
These alerts detect when there is a denied rate of responses over 10% for over 10 minutes in a proxy. | ||
|
||
## [Haproxy-Ingress] High Response Rate | ||
This alert triggers when a proxy has a mean response time higher than 250ms for over 10 minutes. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Adding HAProxy Ingress | ||
To install the HAProxy, you can use the [official Helm chart](https://github.com/haproxytech/helm-charts): | ||
```sh | ||
helm repo add haproxytech https://haproxytech.github.io/helm-charts | ||
helm repo update | ||
``` | ||
|
||
# Install k8s HAProxy ingress controller and configuring Prometheus metrics | ||
This command will install haproxy-ingress helm chart with prometheus metrics and haproxy stats enabled | ||
``` | ||
helm install haproxy-ingress haproxy-ingress/haproxy-ingress \ | ||
--set-string "controller.stats.enabled = true" \ | ||
--set-string "controller.metrics.enabled = true" | ||
``` | ||
|
||
Metrics will be exposed via 9101 port and /metrics path | ||
|
||
# Pod and metrics check | ||
|
||
To get the pods of the ingress: | ||
``` | ||
kubectl get pods -l app.kubernetes.io/instance=haproxy-ingress -n haproxy-ingress | ||
``` | ||
Port forward 9101 to your localhost | ||
|
||
``` | ||
kubectl port-forward -n haproxy-ingress pod-name 9101:9101 | ||
``` | ||
To count the metrics of a pod: | ||
``` | ||
curl 'http://localhost:9101/metrics' | grep -v "# HELP\|# TYPE" | wc -l | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
apiVersion: v1 | ||
kind: Dashboard | ||
app: HAProxy Ingress | ||
version: 1.0.0 | ||
appVersion: | ||
- '2.3' | ||
configurations: | ||
- name: HAProxy K8s Ingress Overview | ||
kind: Sysdig | ||
image: haproxy-ingress/images/haproxy-sysdig-ingress-overview-2.3.png | ||
description: | | ||
This dashboard offers information on: | ||
* Up Time | ||
* Instances | ||
* Frontend OK | ||
* Frontend FULL | ||
* Frontend STOPPED | ||
* Backend DOWN | ||
* Connections and Sessions | ||
* SSL Connections | ||
* Active Jobs | ||
* Request and Response Errors | ||
* Tasks | ||
* Active and Connected Peers | ||
* Process Run Queue | ||
* Connection ans Session Denied | ||
* Frontend Bytes In | ||
* Frontend Connections | ||
* Frontend Bytes Out | ||
* Frontend Requests (TCP and HTTP) | ||
file: include/dashboard-Sysdig-HAProxy-K8s-Ingress-Overview-2.3.json | ||
- name: HAProxy Proxy Golden Signals | ||
kind: Sysdig | ||
image: haproxy-ingress/images/haproxy-sysdig-proxy-golden-signals-2.3.png | ||
description: | | ||
This dashboard has the option to select a proxy and offers information on: | ||
* Instances UP | ||
* Instances Down | ||
* Sessions Usage | ||
* Queued Requests | ||
* HTTP Error Rate | ||
* Denial Rate | ||
* HTTP Error by Code | ||
* Data Transfers Aborted | ||
* Mean Response Time | ||
* Mean Connect and Queue Time | ||
* Throughput | ||
* IOPS | ||
* Request and Response Size | ||
file: include/dashboard-Sysdig-HAProxy-Proxy-Golden-Signals-2.3.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ app: HAProxy Ingress | |
version: 1.0.0 | ||
appVersion: | ||
- '2.1' | ||
- '2.3' | ||
descriptionFile: README.md |
Binary file added
BIN
+632 KB
resources/haproxy-ingress/images/haproxy-sysdig-ingress-overview-2.3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+839 KB
resources/haproxy-ingress/images/haproxy-sysdig-proxy-golden-signals-2.3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.