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

[BZ 1570583] Install metrics components in different namespace #8613

Closed
wants to merge 2 commits into from

Conversation

jsanda
Copy link
Contributor

@jsanda jsanda commented Jun 1, 2018

Metrics components can no longer go in openshift-infra. This commit puts them in openshift-metrics.

@ewolinetz can you please review this?

I am operating under the assumption that additional changes will be needed, but things seem to be working after my initial smoke test.

Metrics components can no longer go in openshift-infra. This commit puts
them in openshift-metrics.
@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 1, 2018
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jsanda

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-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 1, 2018
@ewolinetz
Copy link
Contributor

@jsanda it is still valid for HOSA to still be installed in default correct?

Looks like this file also needs to be updated:

url: https://hawkular-metrics.openshift-infra.svc.cluster.local
credentials:
username: secret:openshift-infra/hawkular-metrics-account/hawkular-metrics.username
password: secret:openshift-infra/hawkular-metrics-account/hawkular-metrics.password
ca_cert_file: secret:openshift-infra/hawkular-metrics-certs/ca.crt

Copy link
Contributor

@ewolinetz ewolinetz left a comment

Choose a reason for hiding this comment

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

url: https://hawkular-metrics.openshift-infra.svc.cluster.local
credentials:
username: secret:openshift-infra/hawkular-metrics-account/hawkular-metrics.username
password: secret:openshift-infra/hawkular-metrics-account/hawkular-metrics.password
ca_cert_file: secret:openshift-infra/hawkular-metrics-certs/ca.crt

Can you replace the instances of openshift-infra there with {{ openshift_metrics_project }} ?

@jsanda
Copy link
Contributor Author

jsanda commented Jun 1, 2018

I will make the updates. With respect to HOSA, there is actually another ticket, BZ 1562210, to remove it.

@@ -60,7 +60,7 @@ openshift_metrics_resolution: 30s

openshift_metrics_master_url: https://kubernetes.default.svc
openshift_metrics_node_id: nodename
openshift_metrics_project: openshift-infra
openshift_metrics_project: openshift-metrics
Copy link

Choose a reason for hiding this comment

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

Prometheus and garbage collection are also installed under openshift-metrics project, will our change affect their functions?

@theute
Copy link

theute commented Jun 4, 2018

Will it be ok with existing users who upgrade from older versions ?
What impact on them ? I guess API URL will change at least, other impacts ?

@openshift-ci-robot openshift-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 4, 2018
@jsanda
Copy link
Contributor Author

jsanda commented Jun 4, 2018

@ewolinetz I updated hawkular_openshift_agent_cm.j2. With respect to @juzhao's question:

Prometheus and garbage collection are also installed under openshift-metrics project, will our change affect their functions?

Should I change the default value of openshift_metrics_project?

@ewolinetz
Copy link
Contributor

@jsanda how likely is it that prometheus and hawkular would both be installed at the same time? Is there any negative repercussions from having them installed/running in the same project?

With regards to @theute 's question, I think we should do something similar to what we did for logging, which was try to detect if there is a hawkular stack already installed in its current location, if so then we would maintain configuring in that project, but possibly warn users that they should migrate? Unfortunately there isn't a way to migrate persistent volumes to another project, otherwise we could just do that.

@jwforres
Copy link
Member

jwforres commented Jun 5, 2018

long term the prometheus stack will be installed in openshift-monitoring not openshift-metrics

as far as both hawkular and prometheus being installed during 3.10 - it is definitely possible for customers that are wanting to try out prom for cluster monitoring

@jsanda
Copy link
Contributor Author

jsanda commented Jun 6, 2018

This PR is being replaced by PR 8649.

@jsanda jsanda closed this Jun 6, 2018
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. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants