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

k8gb_runtime_info #622

Merged
merged 1 commit into from
Sep 17, 2021
Merged

k8gb_runtime_info #622

merged 1 commit into from
Sep 17, 2021

Conversation

kuritka
Copy link
Collaborator

@kuritka kuritka commented Sep 17, 2021

related to #587

Runtime info provides information about the k8gb controller. The version and
git SHA are obtained during compilation (see: .gitreleaser.yml)
otherwise they are set to <development, none>. The metric is always 1.
Since it doesn't need to be run periodically, it is only activated once when cntroller starts.
GitSHA (commit) is none in case the controller is not released. If released, commit is shortened to 7 digits.

see example:

k8gb_runtime_info{arch="amd64", git_sha="none", go_version="go1.16.8", instance="10.42.0.5:8080", job="kubernetes-pods", k8gb_version="development", kubernetes_namespace="k8gb", kubernetes_pod_name="k8gb-56c7fbfd7d-kdvch", name="k8gb", namespace="k8gb", os="linux", pod_template_hash="56c7fbfd7d"} 1
k8gb_runtime_info{arch="amd64", git_sha="3277cb9", go_version="go1.16.8", instance="10.42.0.5:8080", job="kubernetes-pods", k8gb_version="v0.8.2", kubernetes_namespace="k8gb", kubernetes_pod_name="k8gb-56c7fbfd7d-kdvch", name="k8gb", namespace="k8gb", os="linux", pod_template_hash="56c7fbfd7d"} 1

Signed-off-by: kuritka [email protected]

related to #587

Runtime info provides information about the k8gb controller. The version and
git SHA are obtained during compilation (see: `.gitreleaser.yml`)
otherwise they are set to <`development`, `none`>. The metric is always 1.
Since it doesn't need to be run periodically, it is only activated once when cntroller starts.
GitSHA (commit) is `none` in case the controller is not released. If released, commit is shortened to 7 digits.

see example:
```
k8gb_runtime_info{arch="amd64", git_sha="none", go_version="go1.16.8", instance="10.42.0.5:8080", job="kubernetes-pods", k8gb_version="development", kubernetes_namespace="k8gb", kubernetes_pod_name="k8gb-56c7fbfd7d-kdvch", name="k8gb", namespace="k8gb", os="linux", pod_template_hash="56c7fbfd7d"} 1
k8gb_runtime_info{arch="amd64", git_sha="3277cb9", go_version="go1.16.8", instance="10.42.0.5:8080", job="kubernetes-pods", k8gb_version="v0.8.2", kubernetes_namespace="k8gb", kubernetes_pod_name="k8gb-56c7fbfd7d-kdvch", name="k8gb", namespace="k8gb", os="linux", pod_template_hash="56c7fbfd7d"} 1
```

Signed-off-by: kuritka <[email protected]>
@kuritka kuritka force-pushed the runtime-metrics-simplified branch from fd25f13 to a98f286 Compare September 17, 2021 11:12
Copy link
Member

@ytsarev ytsarev left a comment

Choose a reason for hiding this comment

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

lgtm

@kuritka kuritka merged commit 4a428b4 into master Sep 17, 2021
@kuritka kuritka deleted the runtime-metrics-simplified branch September 17, 2021 13:20
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.

4 participants