-
Notifications
You must be signed in to change notification settings - Fork 101
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
K8gbEndpointStatus #620
K8gbEndpointStatus #620
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
156402a
to
411f9f6
Compare
@somaritane , thx, |
@kuritka sorry for missing this earlier, I guess |
related to #587 `k8gb_endpoint_status_num`, the metric provides information about the number of targets in DNSEndpoint. ```shell k8gb_endpoint_status{dns_name="failover.cloud.example.com", exported_name="test-gslb-failover", instance="10.42.0.6:8080", job="kubernetes-pods", kubernetes_namespace="k8gb", kubernetes_pod_name="k8gb-7f5564d48b-xtt4w", name="k8gb", namespace="test-gslb", pod_template_hash="7f5564d48b"} | 2 k8gb_endpoint_status{dns_name="localtargets-failover.cloud.example.com", exported_name="test-gslb-failover", instance="10.42.0.6:8080", job="kubernetes-pods", kubernetes_namespace="k8gb", kubernetes_pod_name="k8gb-7f5564d48b-xtt4w", name="k8gb", namespace="test-gslb", pod_template_hash="7f5564d48b"} | 2 k8gb_endpoint_status{dns_name="localtargets-roundrobin.cloud.example.com", exported_name="test-gslb", instance="10.42.0.6:8080", job="kubernetes-pods", kubernetes_namespace="k8gb", kubernetes_pod_name="k8gb-7f5564d48b-xtt4w", name="k8gb", namespace="test-gslb", pod_template_hash="7f5564d48b"} | 2 k8gb_endpoint_status{dns_name="roundrobin.cloud.example.com", exported_name="test-gslb", instance="10.42.0.6:8080", job="kubernetes-pods", kubernetes_namespace="k8gb", kubernetes_pod_name="k8gb-7f5564d48b-xtt4w", name="k8gb", namespace="test-gslb", pod_template_hash="7f5564d48b"} | 4 ``` --- In addition: - I moved the linter test from `gslb_controller_test` to `prometheus_test`. - according to #587 the request was to rename one of the metrics to `k8gb_gslb_service_status_count,`. Unfortunately, this metric is GaugeVec and the linter does not allow to use the `_count` or `_total` suffix (they are reserved for counters). Therefore I renamed the metric to `k8gb_gslb_service_status_num,` Signed-off-by: kuritka <[email protected]>
411f9f6
to
681e575
Compare
@somaritane amended, thx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kuritka lgtm!
related to #587
k8gb_endpoint_status
, the metric provides information about the number of targets in DNSEndpoint.In addition:
gslb_controller_test
toprometheus_test
.k8gb_gslb_service_status_count,
. Unfortunately, this metric is GaugeVec and the linter does not allow to use the_count
or_total
suffix (they are reserved for counters). Therefore I renamed the metric tok8gb_gslb_service_status,
Signed-off-by: kuritka [email protected]