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

shell: Plot zooming #2020

Closed
wants to merge 13 commits into from
Closed

Conversation

mvollmer
Copy link
Member

No description provided.

@stefwalter
Copy link
Contributor

Depends on #2022

/* TODO: Talk to systemd directly. This is a bit too
* cumbersome just for a single service so we cheat and use
* cockpitd which has all the hairy code.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Why? I'm just about to move all the /com/redhat/Cockpit/Services code to javascript. It would be nice to start doing things right.

Alternatively, if you want quick and dirty, just use systemctl.

Copy link
Member Author

Choose a reason for hiding this comment

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

We can't get change notifications from systemctl.

But you are right, of course. The main issue is https://bugs.freedesktop.org/show_bug.cgi?id=69575, which makes it non-trivial to listen to Unit states. (Maybe this is fixed.)

I'll scope On/Off out of this PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll use journalctl to get change notifications.

@stefwalter
Copy link
Contributor

Somehow the logger configuration is being installed outside of $(DESTDIR)

 /bin/mkdir -p '/var/lib/pcp/config/pmlogconf/tools'
/usr/bin/install -c -m 644 ../pkg/shell/pmlogconf/cockpit '/var/lib/pcp/config/pmlogconf/tools'
/usr/bin/install: cannot create regular file `/var/lib/pcp/config/pmlogconf/tools/cockpit': Permission denied

@mvollmer
Copy link
Member Author

Somehow the logger configuration is being installed outside of $(DESTDIR)

Yes, strange. I can't reproduce this here.

@stefwalter
Copy link
Contributor

Yes, strange. I can't reproduce this here.

make distcheck

@mvollmer mvollmer force-pushed the metrics-zoom2 branch 2 times, most recently from 6958ac8 to 4ba0793 Compare March 26, 2015 09:52
@mvollmer
Copy link
Member Author

Fixed "make distcheck".

@mvollmer mvollmer force-pushed the metrics-zoom2 branch 2 times, most recently from 130a88d to 5a5531e Compare March 26, 2015 10:34
@mvollmer
Copy link
Member Author

Rebased.

@mvollmer
Copy link
Member Author

There is noise in pkg/kubernetes, from "make update-lib". @stefwalter is that expected?

@mvollmer
Copy link
Member Author

There is noise in pkg/kubernetes, from "make update-lib". @stefwalter is that expected?

That was fixed by #2022, sorry for not paying enough attention.

@stefwalter
Copy link
Contributor

This changes the way the graphs look on the server page. The y axis labels run into the graphs.

screenshot from 2015-03-26 21-33-03

@stefwalter
Copy link
Contributor

Hmmm, the graph labels don't seem to stay with the graphs.

screenshot from 2015-03-26 21-38-40

@mvollmer mvollmer force-pushed the metrics-zoom2 branch 3 times, most recently from a0c0d79 to ca63124 Compare April 7, 2015 07:35
@mvollmer
Copy link
Member Author

Note that the formating changes affect all of Cockpit, such as the Storage pages, but I think that is a good thing.

@andreasn
Copy link
Contributor

This is a lot better, but the graphs needs to line up to the right with the other elements.
screenshot from 2015-04-20 15 03 47

@mvollmer
Copy link
Member Author

Depends on #2182 for some of the cosmetic fixes related to number formatting.

@mvollmer
Copy link
Member Author

but the graphs needs to line up to the right with the other elements.

Fixed.

@dperpeet
Copy link
Contributor

There is a lot of 800.0 Kbps, 768.0 MB etc. Can the decimal be dropped there?

Done.

Discussion on this in #2182

@stefwalter
Copy link
Contributor

There is a lot of 800.0 Kbps, 768.0 MB etc. Can the decimal be dropped there?

To be fair, this shouldn't depend on the normal byte formatting. The lines should be drawn at precicely those numbers, in which case, the trailing .0 should go away, as no rounding is necessary.

I think this is more an inherent limitation of flot (not putting axis ticks) on proper units. Our fix for this shouldn't necessarily affect the rest of Cockpit. With D3, it builds axis intelligently, so it'll actually draw the line at 768 * 1024 * 1024, rather than 768 * 1024 * 1024 +- N.

@andreasn
Copy link
Contributor

The lines should be drawn at precicely those numbers, in which case, the trailing .0 should go away, as no rounding is necessary.

Makes sense.

@mvollmer
Copy link
Member Author

I think this is more an inherent limitation of flot (not putting axis ticks) on proper units.

We can control where the ticks are placed, see memory_ticks for an example.

@mvollmer mvollmer closed this in 5617d77 Apr 21, 2015
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.

None yet

4 participants