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

✨ Add ServiceMonitor for hub metrics #242

Merged
merged 1 commit into from
Jun 8, 2023

Conversation

mansam
Copy link
Contributor

@mansam mansam commented Jun 8, 2023

  • Adds a ServiceMonitor to allow the in-cluster monitoring to scrape Hub metrics (requires an OpenShift cluster)
  • Adds a NetworkPolicy to expose the Hub's metrics port.
  • Adds RBAC roles to allow the operator to manage ServiceMonitors

I'm not sure if there's a better way to test if the monitoring operator is available, or if there's a way to more tightly restrict the network policy.

I'll need to backport this to release-0.2 once it is merged.

Related to https://issues.redhat.com/projects/MTA/issues/MTA-402

@mansam mansam requested review from jmontleon and fbladilo June 8, 2023 20:31
Copy link
Member

@jmontleon jmontleon left a comment

Choose a reason for hiding this comment

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

ACK

@mansam mansam merged commit 3890fd1 into konveyor:main Jun 8, 2023
mansam added a commit to mansam/tackle2-operator that referenced this pull request Jun 8, 2023
* Adds a ServiceMonitor to allow the in-cluster monitoring to scrape Hub
metrics (requires an OpenShift cluster)
* Adds a NetworkPolicy to expose the Hub's metrics port.
* Adds RBAC roles to allow the operator to manage ServiceMonitors

I'm not sure if there's a better way to test if the monitoring operator
is available, or if there's a way to more tightly restrict the network
policy.

Related to https://issues.redhat.com/projects/MTA/issues/MTA-402

Signed-off-by: Sam Lucidi <[email protected]>
mansam added a commit that referenced this pull request Jun 8, 2023
* Adds a ServiceMonitor to allow the in-cluster monitoring to scrape Hub
metrics (requires an OpenShift cluster)
* Adds a NetworkPolicy to expose the Hub's metrics port.
* Adds RBAC roles to allow the operator to manage ServiceMonitors

I'm not sure if there's a better way to test if the monitoring operator
is available, or if there's a way to more tightly restrict the network
policy.

Related to https://issues.redhat.com/projects/MTA/issues/MTA-402

Signed-off-by: Sam Lucidi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants