-
Notifications
You must be signed in to change notification settings - Fork 437
docs: Enhance documentation for K8s Gateway API metrics. #5628
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
docs: Enhance documentation for K8s Gateway API metrics. #5628
Conversation
8e24d24
to
81ef5d0
Compare
### Install Metrics Stack | ||
|
||
Run the following commands to install the metrics stack, with the _Gateway API State Metrics_ configuration, | ||
on your kubernetes cluster: | ||
|
||
```shell | ||
kubectl apply --server-side -f https://raw.githubusercontent.com/Kuadrant/gateway-api-state-metrics/main/config/examples/kube-prometheus/bundle_crd.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
referring to moving these into https://github.com/envoyproxy/gateway/tree/main/charts/gateway-addons-helm which is the prerequisite step similar to other tasks so users dont need to install/upgrade one more thing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need L27 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed redundant CRDs
a5eaae9
to
439b31d
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5628 +/- ##
==========================================
- Coverage 65.27% 65.26% -0.01%
==========================================
Files 213 213
Lines 34121 34121
==========================================
- Hits 22272 22269 -3
- Misses 10508 10510 +2
- Partials 1341 1342 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
142ad30
to
f83017f
Compare
@@ -2,57 +2,141 @@ | |||
title: "Gateway API Metrics" | |||
--- | |||
|
|||
Resource metrics for Gateway API objects are available using the [Gateway API State Metrics][gasm] project. | |||
The project also provides example dashboard for visualising the metrics using Grafana, and example alerts using Prometheus & Alertmanager. | |||
Resource metrics for **Kubernetes Gateway API** objects are available through the [Gateway API State Metrics][gasm] project. The project also includes an example dashboard for visualizing the metrics with Grafana, along with sample alerts using Prometheus and Alertmanager. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this line still relevant, now that its provided via gateway-addons-helm ?
target_name: [ "name" ] | ||
target_namespace: [ "namespace" ] | ||
rbac: | ||
extraRules: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we also add EG resources here - xPolicies and HTTPRouteFilter
customResourceState: | ||
enabled: true | ||
# Add (Cluster)Role permissions to list/watch the customResources defined in the config to rbac.extraRules | ||
config: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this live here or in a template ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding more context:
This config should be added to a file and then path to that file can be passed to kube-state-metrics
Here is an example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are using the Prometheus chart that comes with the Prometheus add-on. This chart does not seem to have that confg-file option
https://github.com/prometheus-community/helm-charts/blob/995b3392c82ecfdec4cbc432064b04b40c71c8aa/charts/kube-state-metrics/values.yaml#L452
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like the config file option is enabled by default: https://github.com/prometheus-community/helm-charts/blob/995b3392c82ecfdec4cbc432064b04b40c71c8aa/charts/kube-state-metrics/templates/deployment.yaml#L139C47-L139C83
and when you add those metrics as config it already goes into a configmap so what you have done is sufficient then. ✔️
6d9d743
to
21a87af
Compare
a75dd90
to
344030f
Compare
site/content/en/latest/tasks/observability/gateway-api-metrics.md
Outdated
Show resolved
Hide resolved
1fcf2d7
to
63cb8a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks !
63cb8a9
to
8042e97
Compare
Signed-off-by: sudipto baral <[email protected]>
Signed-off-by: sudipto baral <[email protected]>
Signed-off-by: sudipto baral <[email protected]>
Signed-off-by: sudipto baral <[email protected]>
Signed-off-by: sudipto baral <[email protected]>
8042e97
to
fdce08f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Tasks
kube-state-metrics
using Add-ons charts.Fixes #5625
Release Notes: No