Gentoo Archives: gentoo-dev

From: Gokturk Yuksek <gokturk@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] New Project: Gentoostats
Date: Fri, 06 Jan 2017 16:08:55
Message-Id: 4d77872e-41ed-3d53-83be-962501e5a8ea@gentoo.org
In Reply to: Re: [gentoo-dev] New Project: Gentoostats by Daniel Campbell
1 Hi,
2
3 Daniel Campbell:
4 > On 01/02/2017 09:27 AM, Gokturk Yuksek wrote:
5 >> Alexander Shorin:
6 >>> Hi!
7 >>>
8 >>> Thanks for sharing. Would be nice see updated README file (it contains
9 >>> outdated links to Not Found pages) and add few notes about comparison
10 >>> of your solution with collectd, ussd and the rest modern stats
11 >>> collecting tools.
12 >>> How better it suites Gentoo machines and why to use it today instead
13 >>> of any existed and mature tool?
14 >>
15 >> We are interested in different kinds of stats with gentoostats. The main
16 >> purpose of gentoostats is to collect package statistics, and currently
17 >> it does so by utilizing the Portage API. Here's a sample output from the
18 >> gentoostats-cli tool that may give you a better idea:
19 >>
20 >> $ gentoostats-cli search --c sys-apps --p portage --v 2.3.0 --r gentoo
21 >> --min_hosts 4
22 >> Search results
23 >> [{'CAT': 'sys-apps',
24 >> 'HOSTS': 5,
25 >> 'PKG': 'portage',
26 >> 'REPO': 'gentoo',
27 >> 'VER': '2.3.0'}]
28 >>
29 >> There is also other Gentoo-specific information it collects such as this:
30 >>
31 >> $ gentoostats-cli list arch
32 >> Arch
33 >> {'amd64': {'HOSTS': 4}, 'x86': {'HOSTS': 1}}
34 >>
35 >>> --
36 >>> ,,,^..^,,,
37 >>>
38 >>>
39 >>
40 >> --
41 >> gokturk
42 >>
43 >>
44 > Is it too late to suggest more standard flags? `--c` for example doesn't
45 > make sense to me since '--' is used more for GNU long options. So it
46 > should be '--category' and '-c' instead. Of course that's just my
47 > opinion, so take it with salt as usual. :)
48 >
49
50 That's a typo on my part, thanks for pointing it out :) It's
51 '-c/--category', '-p/--package', '-v/--version' and '-r/--repo'. I used
52 the long options, then decided to go with the short ones to increase
53 readability, forgot to remove extra '-'.
54
55 > Still, interesting project and I might run it on a machine if it can
56 > help us out.
57 >

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] New Project: Gentoostats Daniel Campbell <zlg@g.o>