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

collect metrics for cluster-policy-controller #554

Merged
merged 1 commit into from
Nov 18, 2021

Conversation

atiratree
Copy link
Member

@atiratree atiratree commented Jul 23, 2021

updates the ServiceMonitor so it also collects metrics from cluster-policy-controller.

This will start working after the correct ports get opened on the nodes - see installer PR

TODO:

@openshift-ci openshift-ci bot requested review from deads2k and mfojtik July 23, 2021 17:21
@@ -14,3 +14,6 @@ spec:
- name: https
port: 443
targetPort: 10257
- name: httpscpc
port: 10357
Copy link
Member Author

@atiratree atiratree Jul 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should I choose a different port or create a standalone service instead?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@atiratree double check that with monitoring team, I think you're gonna need a new service or at least a configuration for the 2nd port, since you're not using non-standard 443 here. I think having a service will be simpler.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have switched to using 2 services and 2 service monitors to separate the responsibilities

@atiratree
Copy link
Member Author

/retest

@atiratree
Copy link
Member Author

/retest

1 similar comment
@atiratree
Copy link
Member Author

/retest

@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 3, 2021
@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 3, 2021
@soltysh
Copy link

soltysh commented Aug 31, 2021

/assign @ravisantoshgudimetla

@@ -14,3 +14,6 @@ spec:
- name: https
port: 443
targetPort: 10257
- name: httpscpc
port: 10357
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@atiratree double check that with monitoring team, I think you're gonna need a new service or at least a configuration for the 2nd port, since you're not using non-standard 443 here. I think having a service will be simpler.

@atiratree
Copy link
Member Author

/retest

kube-controller-manager: "true"
ports:
- name: https
port: 443
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need to have the service listening on a privileged port? It might be better to use the same port as the one used by the container wdyt?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dgrisonnet I have switched to the respective container ports. Although I am not sure why 443 port is problematic for services, can you elaborate on that a bit?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not aware of any with services, but I tend to avoid using privileged ports as much as possible and here I don't think there is a real reason for that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, thx

@atiratree
Copy link
Member Author

/retest

1 similar comment
@atiratree
Copy link
Member Author

/retest

@atiratree
Copy link
Member Author

installer PR merged

@atiratree
Copy link
Member Author

/retest

3 similar comments
@atiratree
Copy link
Member Author

/retest

@atiratree
Copy link
Member Author

/retest

@atiratree
Copy link
Member Author

/retest

Copy link

@soltysh soltysh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 18, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 18, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: atiratree, soltysh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 18, 2021
@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 42db0aa into openshift:master Nov 18, 2021
@deads2k
Copy link
Contributor

deads2k commented Nov 19, 2021

since this merged, we're seeing a payload promotion failure on alert TargetDown fired for 1988 seconds with labels: {job="cluster-policy-controller", namespace="openshift-kube-controller-manager", service="cluster-policy-controller", severity="warning"}

See jobs linked from https://prow.ci.openshift.org/view/gs/origin-ci-test/logs/aggregated-aws-ovn-upgrade-4.10-minor-release-openshift-release-analysis-aggregator/1461737712246591488 for example

https://prow.ci.openshift.org/view/gs/origin-ci-test/logs/periodic-ci-openshift-release-master-ci-4.10-upgrade-from-stable-4.9-e2e-aws-ovn-upgrade/1461737701790191616 and 9 others

prometheus: kube-controller-manager
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is failing.

deads2k added a commit to deads2k/cluster-kube-controller-manager-operator that referenced this pull request Nov 19, 2021
deads2k added a commit that referenced this pull request Nov 20, 2021
Revert "Merge pull request #554 from atiratree/cpc-metrics"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants