gyfora opened a new pull request, #302:
URL: https://github.com/apache/flink-kubernetes-operator/pull/302
Clean up and formalize operator metric scopes:
- `system`: Operator level metrics
- `namespace`: Resource Namespace level metrics (belonging to one of the
watched namespaces)
- `resource` : Resource level metrics
Before:
```
hostname.k8soperator.default.flink-kubernetes-operator.Status.JVM.Memory.Mapped.MemoryUsed:
0
hostname.k8soperator.default.flink-kubernetes-operator.resourcens.default.FlinkDeployment.DEPLOYING.Count:
0
```
After:
```
hostname.k8soperator.default.flink-kubernetes-operator.system.Status.JVM.Memory.Mapped.MemoryUsed:
0
hostname.k8soperator.default.flink-kubernetes-operator.namespace.default.FlinkDeployment.DEPLOYING.Count:
0
```
One given metric called `Metric` in the 3 scopes:
```
<prefix>.system.Metric
<prefix>.namespace.resourceNs.Metric
<prefix>.resource.resoureNs.resourceName.Metric
```
As an addition based on this work, this PR also includes a minimalistic
integration with the JOSDK built in metrics:
sample output
```
hostname.k8soperator.default.flink-kubernetes-operator.resource.default.basic-example.JOSDK.Reconciliation.finished.Count:
4
hostname.k8soperator.default.flink-kubernetes-operator.resource.default.basic-example.JOSDK.Reconciliation.started.Count:
4
hostname.k8soperator.default.flink-kubernetes-operator.resource.default.basic-example.JOSDK.Resource.Event.Count:
5
hostname.k8soperator.default.flink-kubernetes-operator.resource.default.basic-example.JOSDK.Resource.Event.ADDED.Count:
2
hostname.k8soperator.default.flink-kubernetes-operator.resource.default.basic-example.JOSDK.Resource.Event.DELETED.Count:
1
hostname.k8soperator.default.flink-kubernetes-operator.resource.default.basic-example.JOSDK.Resource.Event.UPDATED.Count:
2
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]