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 allocations metrics #963

Merged
merged 11 commits into from
Aug 24, 2019
Merged

Conversation

cyriltovena
Copy link
Collaborator

@cyriltovena cyriltovena commented Jul 30, 2019

This adds gameserver allocations metrics with a dashboard. The metrics tracks allocations count, rates and latency per nodes, fleet and status.

I've also added everything required to handle multi cluster allocations but nothing used in the dashboard yet.

I've fixed some issues with kind cluster and also took the time to add metrics and healthcheck for the allocator service. (with a grafana dashboard)

Documentation has been updated.

Screen Shot 2019-07-30 at 12 55 28 PM

Closes #144

@agones-bot

This comment has been minimized.

@agones-bot

This comment has been minimized.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: c5aca92e-cc39-4d57-a560-5aff291d35c9

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

@aLekSer
Copy link
Collaborator

aLekSer commented Jul 30, 2019

Issue in make test-install-yaml
@cyriltovena, you need to run make gen-install and commit changes.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: c72a940e-9e15-4b60-b154-eb6cdb765116

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

@markmandel
Copy link
Member

Hitting retry!

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: f81b5185-8591-4b53-b5ff-ad8f6cb93574

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/GoogleCloudPlatform/agones.git pull/963/head:pr_963 && git checkout pr_963
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.12.0-8866ae8

@roberthbailey
Copy link
Member

@markmandel - have you had time to review this? Are you still hoping to get it in before the 0.12.0 RC?

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: b80982f4-2e2e-46ad-b8a7-f69cd755796e

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/GoogleCloudPlatform/agones.git pull/963/head:pr_963 && git checkout pr_963
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.12.0-2034569

@cyriltovena
Copy link
Collaborator Author

You can go ahead Robert, so I can start fixing if you find things, I created a structure to embed the tagging/record logic because I didn't wanted to add a lot of nested code in the current allocation implementation. I think that was a good idea but I would love feedback

Copy link
Contributor

@pooneh-m pooneh-m left a comment

Choose a reason for hiding this comment

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

Thanks for adding metrics for allocation and liveliness check.

cmd/allocator/main.go Show resolved Hide resolved
cmd/allocator/main.go Outdated Show resolved Hide resolved
cmd/allocator/main.go Show resolved Hide resolved
var err error
lock := sync.Mutex{}
// force a pod restart if the https server exits.
health.AddLivenessCheck("allocator-https", func() error {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we instead having two place for liveliness check and healthz only use healthz and leverage wait group to end the process if ListenAndServeTLS returns?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes good idea, I'm doing it, way simpler :)

@markmandel
Copy link
Member

@markmandel - have you had time to review this? Are you still hoping to get it in before the 0.12.0 RC?

I only just woke up 😁- so if there is a chance to get this in before I do the RC release in a few hours, that would be awesome, I think.

@markmandel markmandel added area/operations Installation, updating, metrics etc feature-freeze-do-not-merge Only eligible to be merged once we are out of feature freeze (next full release) kind/feature New features for Agones labels Aug 1, 2019
@cyriltovena
Copy link
Collaborator Author

Thanks @pooneh-m, I'll look into it.

@markmandel markmandel removed the feature-freeze-do-not-merge Only eligible to be merged once we are out of feature freeze (next full release) label Aug 13, 2019
@markmandel
Copy link
Member

@cyriltovena - was going to do a review, but looks like you have some outstanding review items from @pooneh-m , so I'll hold off until they are complete.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 6c91761c-f24f-4c4c-b279-8c7d74367b46

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

@cyriltovena
Copy link
Collaborator Author

@pooneh-m I fixed all your feedbacks, thanks !

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 28b5e835-1d6d-4acf-90e5-c627a53090bd

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

@markmandel
Copy link
Member

Oops, make gen-install 🤣

@cyriltovena
Copy link
Collaborator Author

I'll check everything one more time.

@cyriltovena
Copy link
Collaborator Author

Oops, make gen-install 🤣

it got rollback by a rebase....

@cyriltovena
Copy link
Collaborator Author

errr, something went wrong with the rebase.... I lost some new dashboard....

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 4147cd83-c2af-4452-98d6-5884072f035f

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

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 36203b24-b4f4-44c6-8558-2002bbd8b1df

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/GoogleCloudPlatform/agones.git pull/963/head:pr_963 && git checkout pr_963
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.0.0-e6dc4cf

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: a4ffeae0-f819-479e-a2b1-4cc24626c0fc

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/GoogleCloudPlatform/agones.git pull/963/head:pr_963 && git checkout pr_963
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.0.0-f76570a

@cyriltovena cyriltovena merged commit 8331c01 into googleforgames:master Aug 24, 2019
@markmandel markmandel added this to the 1.0.0 milestone Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/operations Installation, updating, metrics etc kind/feature New features for Agones
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Statistics collection and display
6 participants