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

Wrong label and container port in doc on Setting up Metrics Monitoring for Operator-backed deployments #1321

Closed
rm3l opened this issue Jun 12, 2024 · 4 comments
Assignees
Labels
good first issue Good for newcomers jira Sync this issue with Jira kind/documentation

Comments

@rm3l
Copy link
Member

rm3l commented Jun 12, 2024

What do you want to improve?

https://github.com/janus-idp/backstage-showcase/blob/main/showcase-docs/monitoring-and-logging.md#operator-backed-deployment

Stumbled upon this while reviewing redhat-developer/red-hat-developers-documentation-rhdh#263

What is the current documentation?

# make sure to update CR_NAME value accordingly
$ CR_NAME=my-rhdh
$ MY_PROJECT=my-project
$ cat <<EOF > /tmp/${CR_NAME}.ServiceMonitor.yaml
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: ${CR_NAME}
  namespace: ${MY_PROJECT}
  labels:
    app.kubernetes.io/instance: ${CR_NAME}
    app.kubernetes.io/name: backstage
spec:
  namespaceSelector:
    matchNames:
      - ${MY_PROJECT}
  selector:
    matchLabels:
      janus-idp.io/app: backstage-${CR_NAME}
  endpoints:
  - port: http-backend
    path: '/metrics'
EOF
$ oc apply -f /tmp/${CR_NAME}.ServiceMonitor.yaml

In the ServiceMonitor resource to create, the label name added by the Operator has changed from janus-idp.io/app to rhdh.redhat.com/app a long time ago (janus-idp/operator#199) before the first version of the operator was released, and we forgot to update this doc.

Also, the container port endpoint to scrape metrics from seems to be wrong. It should be backend as per the 1.1.x, 1.2.x or main branches in the operator repo.

As a consequence, the instructions depicted in this https://github.com/janus-idp/backstage-showcase/blob/main/showcase-docs/monitoring-and-logging.md#operator-backed-deployment will not work as expected.

What is the new documentation?

  • Replace janus-idp.io/app with rhdh.redhat.com/app
  • Replace the container port name from http-backend to backend
  • Make sure the instructions provided work correctly

/good-first-issue

JIRA: https://issues.redhat.com/browse/RHIDP-2657

Copy link

openshift-ci bot commented Jun 12, 2024

@rm3l:
This request has been marked as suitable for new contributors.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-good-first-issue command.

In response to this:

What do you want to improve?

https://github.com/janus-idp/backstage-showcase/blob/main/showcase-docs/monitoring-and-logging.md#operator-backed-deployment

What is the current documentation?

In the ServiceMonitor resource to create, the label name added by the Operator has changed from janus-idp.io/app to rhdh.redhat.com/app a long time ago (janus-idp/operator#199) before the first version of the operator was released, and we forgot to update this doc.

Also, the container port endpoint to scrape metrics from seems to be wrong. It should be backend as per the 1.1.x, 1.2.x or main branches in the operator repo.

As a consequence, the instructions depicted in this https://github.com/janus-idp/backstage-showcase/blob/main/showcase-docs/monitoring-and-logging.md#operator-backed-deployment will not work as expected.

What is the new documentation?

  • Replace janus-idp.io/app with rhdh.redhat.com/app
  • Replace the container port name from http-backend to backend
  • Make sure the instructions provided work correctly

/good-first-issue

Instructions 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.

@openshift-ci openshift-ci bot added good first issue Good for newcomers help wanted labels Jun 12, 2024
@github-actions github-actions bot added the jira Sync this issue with Jira label Jun 12, 2024
@Fortune-Ndlovu Fortune-Ndlovu self-assigned this Jun 13, 2024
@Fortune-Ndlovu
Copy link
Member

The relevant updates have been made for this issue and I have also opened up the PR: https://github.com/janus-idp/backstage-showcase/pull/1332.

@rm3l
Copy link
Member Author

rm3l commented Jun 27, 2024

Fixed by #1332

/close

Copy link

openshift-ci bot commented Jun 27, 2024

@rm3l: Closing this issue.

In response to this:

Fixed by #1332

/close

Instructions 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.

@openshift-ci openshift-ci bot closed this as completed Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers jira Sync this issue with Jira kind/documentation
Projects
None yet
Development

No branches or pull requests

2 participants