Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding nginx gateway fabric monitoring #520

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading