Gentoostats

From Gentoo Wiki
Jump to: navigation, search

gentoostats can collect several statistics from Gentoo machines. It was a Google Summer of Code 2011 project.

Installation

Gentoostats is available through the betagarden overlay. Make sure you have the git USE flag enabled in layman to install the repository. Also, the package is unstable, so add it to your keywords file.

root # layman -a betagarden
root # emerge --ask gentoostats

When first installed, the program created a unique identifier for your machine. Use this identifier later to view the statistics of your machine. The identifier is stored in /etc/gentoostats/auth.cfg.

Sending Statistics

Sending statistics of your machine is simple. You can control which statistics are sent by editing /etc/gentoostats/payload.cfg.

root # gentoostats-send

Viewing Statistics

The website can be used to view some aggregated statistics. To view the stats in json (instead of the regular html view), you have to add the "Accept:application/json" HTTP Header to your request. For instance:

user $ curl -H "Accept:application/json" http://soc.dev.gentoo.org/gentoostats/arch

You can also use the commandline interface to request json formatted statistics. For instance to view the statistics available on gentoo-sources or view what different architectures are used:

root # gentoostats-cli search -p gentoo-sources gentoostats-cli list arch

The following options are available:

  • search
    • -c, --category
    • -p', --package
    • -v', --version
    • -r', --repo
    • --min_hosts
    • --max_hosts
  • list
    • arch
    • feature
    • lang
    • mirror
    • repo
    • package
    • use
Personal tools
Namespaces

Variants
Actions
Gentoo Websites logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Navigation
Toolbox
Categories