Skip to content

Commit

Permalink
Refactor metrics code (#823)
Browse files Browse the repository at this point in the history
* refactored var block and collector registration part

* refactored Collect() method for MC

* refactored Collect() method for MCM

* correction to helper function in MC metric update part

* made metric enumeration more intutive

* adds metric port for MC container

* removed cloud_api subsystem from MCM , kept in MC , removed promatu dependency, renamed functions,

* resolved lint errors
  • Loading branch information
himanshu-kun authored Jun 5, 2023
1 parent c409530 commit ccf5183
Show file tree
Hide file tree
Showing 5 changed files with 343 additions and 795 deletions.
4 changes: 4 additions & 0 deletions kubernetes/deployment/out-of-tree/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ spec:
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
ports:
- containerPort: 10258
name: metrics
protocol: TCP
- command:
- ./machine-controller
- --control-kubeconfig=$(TARGET_KUBECONFIG) # Mandatory Parameter - Filepath to the target cluster's kubeconfig where node objects are expected to join.
Expand Down
Loading

0 comments on commit ccf5183

Please sign in to comment.