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

Add StatefulSets to monitoring #1163

Merged

Conversation

benjaminapetersen
Copy link
Contributor

Progress so far:

screen shot 2017-01-20 at 1 37 28 pm

screen shot 2017-01-20 at 1 38 09 pm

I think this is doable today, is just a lot of copy/paste & update. No logs (since we don't have the endpoint) but metrics works.

@jwforres @spadgett

@jwforres
Copy link
Member

jwforres commented Jan 20, 2017 via email

@spadgett
Copy link
Member

@benjaminapetersen
Copy link
Contributor Author

benjaminapetersen commented Jan 20, 2017

TODO yet:

  • fix the above issue to show something when metrics is not available
  • fix the dropdown picker for "stateful sets"
  • fix the replicas count, since it will always be 0 until 1.6

@benjaminapetersen
Copy link
Contributor Author

No logs message:

screen shot 2017-01-20 at 3 05 53 pm

same fn works to load up the pods for a stateful sets as is used for the replica sets.

@benjaminapetersen
Copy link
Contributor Author

squashed


// TODO: make setStatefulSetLogVars work
// logging endpoint for stateful sets coming in the future.
var setStatefulSetLogVars = function(set) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we just comment out all of this, no point in running code we arent using

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can do.

return true;
}
// TODO: statefulSets don't have status.phase. As far as I understand, they don't age the
// way other things age, so perhaps this is irrelevant?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep i think you are right, I don't think we would hide any statefulsets ever, so you don't need to change anything when the filter is checked/unchecked

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good, will wipe out most of this fn then.

<small>created <span am-time-ago="set.metadata.creationTimestamp"></span></small>
</div>
<div class="list-group-item-text">
<!-- TODO: is this the right status? -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably just needs to be the replica counts like we have in the stateful sets table, we dont have a status for stateful sets

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. I got this for the other pages, will see if I can work in in here quick as well.

<div class="list-view-pf-additional-info">
<div class="list-view-pf-additional-info-item">
<span class="pficon fa-fw pficon-image"></span>
<!-- TODO: not sure what to do with this, gotta figure it out -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like this is right, if you copied it from the dep stuff should be fine

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ha, sorry, that was an early comment I should have removed :)

</div>
<div ng-repeat-end ng-if="expanded.statefulSets[set.metadata.name]" class="list-group-expanded-section" ng-class="{'expanded': expanded.statefulSets[set.metadata.name]}">

<!-- TODO: add logs once we have logs subresource for statefulSets
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

honestly i would probably just remove this completely, we dont have logs for replicasets either and it may be awhile before we do, I dont think we left any commented out code for those

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works for me, removed.


<!-- Until the metrics directive pulls the metrics from the time range of the life of the pod, hide the metrics for old stuff -->
<div class="mar-top-lg" ng-if="metricsAvailable">
Logs are not available for stateful sets.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesnt seem right, this message only shows up if metricsAvailable is true, you'll still end up with any empty section when metrics arent available

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Um, yeah... that doesn't make sense. Fixed.

@benjaminapetersen benjaminapetersen changed the title [WIP] Add StatefulSets to monitoring Add StatefulSets to monitoring Jan 20, 2017
@benjaminapetersen
Copy link
Contributor Author

benjaminapetersen commented Jan 20, 2017

Fixed the replicas count as well by counting pods per discussion.

screen shot 2017-01-20 at 4 38 59 pm

- Supports Metrics
- Does not currently support logs
@benjaminapetersen
Copy link
Contributor Author

rebased

@jwforres
Copy link
Member

[merge]

@spadgett
Copy link
Member

oc --server https://localhost:8443 patch oauthclient/openshift-web-console -p {"redirectURIs":["https://localhost:9000/"]}
>> Error: The connection to the server localhost:8443 was refused - did you specify the right host or port?

[merge]

@jwforres
Copy link
Member

[merge]

@openshift-bot
Copy link

Evaluated for origin web console merge up to aea91f5

@openshift-bot
Copy link

openshift-bot commented Jan 23, 2017

Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/964/) (Base Commit: 448422b)

@openshift-bot openshift-bot merged commit 880fcfc into openshift:master Jan 23, 2017
@benjaminapetersen benjaminapetersen deleted the statefulset-monitoring branch January 23, 2017 14:38
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.

4 participants