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

introducing basic metrics #96

Merged
merged 4 commits into from
Nov 23, 2017
Merged

introducing basic metrics #96

merged 4 commits into from
Nov 23, 2017

Conversation

auhlig
Copy link
Member

@auhlig auhlig commented Nov 13, 2017

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

@request-info
Copy link

request-info bot commented Nov 13, 2017

The maintainers of this repository would appreciate it if you could provide more information.


func (e *Exporter) Collect(ch chan<- prometheus.Metric) {

//TODO list klusters via API and derive the following metrics
Copy link
Member Author

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?

Copy link
Contributor

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...

@auhlig auhlig force-pushed the metrics branch 2 times, most recently from 0bb387a to 183742d Compare November 17, 2017 01:10
@auhlig
Copy link
Member Author

auhlig commented Nov 17, 2017

Could you take another look @BugRoger?

@auhlig auhlig changed the title **WIP** introducing basic metrics introducing basic metrics Nov 17, 2017
Copy link
Member

@databus23 databus23 left a 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

@databus23
Copy link
Member

Much better. We definitely need to squash the two commits to avoid having all those files in the history.

@auhlig
Copy link
Member Author

auhlig commented Nov 17, 2017

Squashed. I specified the subpackages, so it's not pulling so much in the first place.

@auhlig
Copy link
Member Author

auhlig commented Nov 17, 2017

Better now @databus23? Any additional metrics?

@auhlig auhlig merged commit 8793e79 into master Nov 23, 2017
@auhlig auhlig deleted the metrics branch November 23, 2017 15:57
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.

3 participants