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

Update metrics documentation for Cloud Monitoring/Stackdriver #2862

Merged
merged 8 commits into from
Jan 5, 2023

Conversation

junninho
Copy link
Contributor

@junninho junninho commented Dec 9, 2022

What type of PR is this?

Uncomment only one /kind <> line, press enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking
/kind bug
/kind cleanup

/kind documentation

/kind feature
/kind hotfix

What this PR does / Why we need it:

  • Update Stackdriver references to Cloud Monitoring
  • Include missing steps to get Cloud Monitoring up and running
  • Add step to resolution for the error mentioned in the troubleshooting section

Which issue(s) this PR fixes:
Closes #2850

Special notes for your reviewer:

- Update Stackdriver references to Cloud Monitoring
- Include missing steps to get Cloud Monitoring up and running
- Add step to resolution for the error mentioned in the troubleshooting section
@junninho
Copy link
Contributor Author

junninho commented Dec 9, 2022

/assign @markmandel

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 041ec12d-a796-466e-84ff-f1a9f167e489

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@markmandel
Copy link
Member

Looks like your docs change have introduced a broken link unfortunately:

site/docs/guides/metrics/index.html
  hash does not exist --- site/docs/guides/metrics/index.html --> #stackdriver-installation

@roberthbailey
Copy link
Member

Looks like an error was caught by htmltest:

htmltest started at 06:05:57 on /tmp/website
========================================================================
site/docs/guides/metrics/index.html
  hash does not exist --- site/docs/guides/metrics/index.html --> #stackdriver-installation

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: b01701d8-6e16-4c24-8476-27b4ae60b9bf

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 44304477-01a7-4fbd-ac87-93c669c84956

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/2862/head:pr_2862 && git checkout pr_2862
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.tag=1.29.0-07fd48a-amd64

Copy link
Collaborator

@aimuz aimuz left a comment

Choose a reason for hiding this comment

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

Looks good

site/content/en/docs/Guides/metrics.md Outdated Show resolved Hide resolved
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 7262a8df-6b0e-4ccd-a4cd-01e4e884a0f7

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/2862/head:pr_2862 && git checkout pr_2862
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.tag=1.29.0-1cc9a3b-amd64

@aimuz
Copy link
Collaborator

aimuz commented Dec 14, 2022

LGTM

Thank you

Copy link
Member

@markmandel markmandel left a comment

Choose a reason for hiding this comment

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

Thank you for doing this work! This is great. I am worried that section on outputting a yaml file could be confusing though - have a look at my comment and let me know what you think.

Comment on lines 231 to 245
If you are using the [YAML installation]({{< ref "/docs/Installation/Install Agones/yaml.md" >}}), you will need to update the necessary parameters in the `install.yaml` file using the following commands:

#### Using Stackdriver with Workload Identity
```bash
helm pull --untar https://agones.dev/chart/stable/agones-1.27.0.tgz && \
cd agones && \
helm template agones-manual --namespace agones-system . \
--set agones.metrics.stackdriverEnabled=true \
--set agones.metrics.prometheusEnabled=false \
--set agones.metrics.prometheusServiceDiscovery=false \
> install-custom.yaml
```

If you would like to enable stackdriver in conjunction with [Workload Identity](https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity), there are a few extra steps you need to follow:
```bash
kubectl apply -f install-custom.yaml
```
Copy link
Member

Choose a reason for hiding this comment

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

🤔 I'm not sure about this section. I'm kinda figuring it's not necessary and possibly confusing.

If you are using the YAML install, running this command doesn't actually change the install.yaml that is hosted on github for the release - it just gives you an yaml file.

If someone is familiar with Helm and wants a yaml file instead, I would argue it's probably likely they already know how to do this.

If they aren't familiar with Helm, I'd worry this section is confusing. I'd be tempted to drop it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm I definitely could have phrased that more accurately. Similarly to the Install Agones using YAML page, I do think having some guidance around what to do if you are using YAML would be helpful. An alternative would be to simply add a note linking to this part of the page to change the parameters.

I'm also not opposed to dropping it but let me know what you think.

Copy link
Member

Choose a reason for hiding this comment

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

Personally, I don't see a lot of people finding confusion with generating yaml from Helm -- but it's entirely possible that's a blind spot I have.

An alternative would be to simply add a note linking to this part of the page to change the parameters.

Seems like a good compromise to me 👍🏻 Could even do it as an "Note" box if you want to highlight it, e.g.

{{< alert title="Note" color="info">}}
You can import our dashboards by copying the json content from {{< ghlink href="/build/grafana" branch="main" >}}each config map{{< /ghlink >}} into your own instance of Grafana (+ > Create > Import > Or paste json) or follow the [installation](#installation) guide.
{{< /alert >}}

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 97a93300-0faa-45cb-9535-678a4b6718f3

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

Change format to be a note referring to the instructions on the
installation page
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 3f6736b6-c9ce-4292-998d-64280c2256d9

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/2862/head:pr_2862 && git checkout pr_2862
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.29.0-c815796-amd64

Copy link
Member

@markmandel markmandel left a comment

Choose a reason for hiding this comment

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

Just realised I never came back and approved this. It's good to go!

@google-oss-prow google-oss-prow bot added the lgtm label Jan 5, 2023
@google-oss-prow
Copy link

New changes are detected. LGTM label has been removed.

@google-oss-prow google-oss-prow bot removed the lgtm label Jan 5, 2023
@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: junninho, markmandel

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

1 similar comment
@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: junninho, markmandel

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

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 7a651389-1ecb-491e-9fca-b65f04f29a09

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/2862/head:pr_2862 && git checkout pr_2862
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.29.0-1f504ef-amd64

@markmandel markmandel merged commit 055a0c2 into googleforgames:main Jan 5, 2023
@Kalaiselvi84 Kalaiselvi84 added this to the 1.29.0 milestone Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs: Rename "Stackdriver" to "Cloud Monitoring"
6 participants