Add reporter metrics to examples - #419
Conversation
✅ Deploy Preview for node-readiness-controller canceled.
|
|
Hi @rawadhossain. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
a6c6d7b to
2c3635e
Compare
| - operator: Exists | ||
| containers: | ||
| - name: cni-status-patcher | ||
| image: registry.k8s.io/node-readiness-controller/node-readiness-reporter:v0.1.1 |
There was a problem hiding this comment.
Note these examples are pinned to v0.1.1 version where the metrics are not available
There was a problem hiding this comment.
Got it. Since these examples are pinned to v0.1.1, should I leave the image tag as is for now?
| app: cni-reporter | ||
| example: cni-readiness | ||
| spec: | ||
| hostNetwork: true |
There was a problem hiding this comment.
These DS run as host network - as they need to scrape the CNI endpoint - this means we are exposing the http metrics endpoint on the host (9445). It's good to callout somewhere in the doc.
There was a problem hiding this comment.
added a note in the README for this
| podMetricsEndpoints: | ||
| - port: metrics | ||
| path: /metrics | ||
| interval: 15s |
There was a problem hiding this comment.
Can we keep this 60s for the example?
There was a problem hiding this comment.
done, kept both to 60s now.
2c3635e to
986956a
Compare
|
New changes are detected. LGTM label has been removed. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: rawadhossain The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Signed-off-by: Rawad Hossain <rawad.hossain00@gmail.com>
986956a to
40d0888
Compare
|
/ok-to-test |
Description
This PR adds example config for the reporter metrics added in #379
9445) to both reporter DaemonSets (cni-readiness,constrained-impersonation).PodMonitormanifest for each example, for anyone using prometheus-operator. Applying it is a separate step, not part ofapply-calico.sh.Related to #380
Builds on #379
Type of Change
/kind documentation
Checklist
make testpassesmake lintpasses