-
Notifications
You must be signed in to change notification settings - Fork 25
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
introducing basic metrics #96
Conversation
The maintainers of this repository would appreciate it if you could provide more information. |
pkg/metrics/exporter.go
Outdated
|
||
func (e *Exporter) Collect(ch chan<- prometheus.Metric) { | ||
|
||
//TODO list klusters via API and derive the following metrics |
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.
Do we want to go as described above or directly integrate in controllers?
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.
We can put it in the controllers as whitebox metrics. Let's do it there instead of carrying around another binary that needs transport, supervision and stuff. And isn't even able to look into the applications.
I'd say we make it easy and cheap to put instrumentation all over the place. Complement and reduce the required logging...
0bb387a
to
183742d
Compare
Could you take another look @BugRoger? |
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.
Could you please run make vendor to remove unused stuff from the vendor dir?
Adding 1 million lines seems a little excessive for adding metrics
Much better. We definitely need to squash the two commits to avoid having all those files in the history. |
Squashed. I specified the subpackages, so it's not pulling so much in the first place. |
Better now @databus23? Any additional metrics? |
metrics:
kubernikus_kluster_status_phase{"kluster_id"="<id>","phase"="<phase>"} < 1|0 >
kubernikus_node_pool_info{"kluster_id"="<id", "node_pool"="<name>", "image_name"="<name>", "flavor_name"="<name>"} <node_pool_size>
kubernikus_node_pool_status{"kluster_id"="<id", "node_pool"="<name>", "status"="<status>"} < number of nodes in that status >
Please add further metrics to this wishlist