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 the apiserver request dashboard #2963

Merged
merged 2 commits into from
Feb 14, 2023

Conversation

zmerlynn
Copy link
Collaborator

This is nearly unreviewable, so here's a screenshot:

image

Changes:

  • The original metrics were deprecated. apiserver_request_total exactly replaces apiserver_request_count, but the old apiserver_request_latencies_summary, which was a gauge, was replaced by apiserver_request_duration_seconds_bucket, which is a historgram type. Changed the expressions to match these changes.

  • Transitioned to $__rate_interval instead of 5m, per recommendation: https://grafana.com/docs/grafana/latest/datasources/prometheus/template-variables/#use-__rate_interval

  • Fixed an issue where label_values(label) isn't supported on GMP (it seems - probably because this goes across ALL metrics), but label_values(label, metric) is - this is a change I'll need to make on nearly every other dashboard but I'll get there later.

  • Upgraded the graph from a deprecated graph type to the new time series type.

I created this PR by using "Save", then copying the JSON blob back to the configmap. I then compensated for the new "fixed" UID datasource by applying this hack: grafana/grafana#45230 (comment) .

This is nearly unreviewable, so I'm attaching a screenshot to the PR.

Changes:

* The original metrics were deprecated. `apiserver_request_total`
exactly replaces `apiserver_request_count`, but the old
`apiserver_request_latencies_summary`, which was a gauge, was replaced
by `apiserver_request_duration_seconds_bucket`, which is a historgram
type. Changed the expressions to match these changes.

* Transitioned to $__rate_interval instead of 5m, per recommendation:
https://grafana.com/docs/grafana/latest/datasources/prometheus/template-variables/#use-__rate_interval

* Fixed an issue where `label_values(label)` isn't supported on GMP (it
seems - probably because this goes across ALL metrics), but
`label_values(label, metric)` is - this is a change I'll need to make
on nearly every other dashboard but I'll get there later.

* Upgraded the graph from a deprecated graph type to the new time
series type.
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 983b0e92-5345-4d46-a05a-0eb10f964916

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/2963/head:pr_2963 && git checkout pr_2963
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.30.0-549fe5d-amd64

@google-oss-prow google-oss-prow bot added the lgtm label Feb 11, 2023
@zmerlynn zmerlynn added this pull request to the merge queue Feb 11, 2023
@markmandel markmandel removed this pull request from the merge queue due to the queue being cleared Feb 11, 2023
@google-oss-prow google-oss-prow bot removed the lgtm label Feb 13, 2023
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 593ab3b8-d123-4e29-ae59-a6ad0f877dc0

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

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: a2036a22-cbf0-4252-b7c6-3d384856fc11

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

@google-oss-prow google-oss-prow bot added the lgtm label Feb 13, 2023
@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gongmax, markmandel, zmerlynn

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

@markmandel markmandel enabled auto-merge (squash) February 14, 2023 19:33
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: b7eefa2d-3b62-4c14-abc7-09619dc292a4

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/2963/head:pr_2963 && git checkout pr_2963
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.30.0-ee9e594-amd64

@markmandel markmandel merged commit 86e678e into googleforgames:main Feb 14, 2023
zmerlynn added a commit to zmerlynn/agones that referenced this pull request Feb 22, 2023
Google Managed Prometheus (GMP) doesn't support unscoped
label_values(label), instead requiring label_values(metric, label).
There's one more use left after googleforgames#2963 - fix it.

Along the way, remove a spurious tab in another dashboard.
zmerlynn added a commit that referenced this pull request Feb 22, 2023
Google Managed Prometheus (GMP) doesn't support unscoped
label_values(label), instead requiring label_values(metric, label).
There's one more use left after #2963 - fix it.

Along the way, remove a spurious tab in another dashboard.
@Kalaiselvi84 Kalaiselvi84 added this to the 1.30.0 milestone Feb 28, 2023
@Kalaiselvi84 Kalaiselvi84 added the area/meta Organisational matters. e.g. Governance, release cycles, etc. label Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/meta Organisational matters. e.g. Governance, release cycles, etc. lgtm size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants