Skip to content

Commit

Permalink
Adding nginx gateway fabric monitoring (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
the2hill authored Oct 30, 2024
1 parent a7b2cc5 commit c916107
Show file tree
Hide file tree
Showing 4 changed files with 876 additions and 0 deletions.
17 changes: 17 additions & 0 deletions base-kustomize/prometheus-nginx-gateway/nginx-gateway-monitor.yaml
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
14 changes: 14 additions & 0 deletions docs/prometheus-nginx-gateway.md
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.
Loading

0 comments on commit c916107

Please sign in to comment.