forked from rackerlabs/genestack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding nginx gateway fabric monitoring (rackerlabs#520)
- Loading branch information
Showing
4 changed files
with
876 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
base-kustomize/prometheus-nginx-gateway/nginx-gateway-monitor.yaml
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,17 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PodMonitor | ||
metadata: | ||
name: nginx-gateway-fabric | ||
namespace: prometheus | ||
labels: | ||
app.kubernetes.io/name: nginx-gateway-fabric | ||
spec: | ||
namespaceSelector: | ||
matchNames: | ||
- nginx-gateway | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: nginx-gateway-fabric | ||
podMetricsEndpoints: | ||
- port: metrics | ||
interval: 15s |
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,14 @@ | ||
# NGINX Gateway Fabric Monitoring | ||
|
||
NGINX Gateway Fabric exposes a lot of important metrics about the gateway. We simply | ||
create a pod monitor to pull these metrics into Prometheus. | ||
|
||
|
||
## Installation | ||
|
||
``` shell | ||
kubectl apply -f /etc/genestack/kustomize/prometheus-nginx-gateway/ | ||
``` | ||
|
||
!!! success | ||
If the installation is successful, you should see metrics with `nginx_gateway_fabric_*` in Prometheus. |
Oops, something went wrong.