inhies / nodestat

Nodestat is a tool that allows you to easily gather statistics about your cjdns node. It currently presents a very simple HTTP JSON API for getting information.
7 stars 5 forks source link

User not shown #3

Open thefinn93 opened 11 years ago

thefinn93 commented 11 years ago

In cjdns, AuthorizedPasswords allow names to be assigned to each one. This data should be made available through nodestat.

lukevers commented 11 years ago

Is this what you're saying? (note the "user" section I added in the sample JSON given in the README)

{
    "gtc8q9d4h4rqvd0wpf7ltt11c85cc5pfffvx6l4rgcdr092yzdp0.k": {
        "PublicKey": "gtc8q9d4h4rqvd0wpf7ltt11c85cc5pfffvx6l4rgcdr092yzdp0.k",
        "State": 2,
        "IsIncoming": false,
        "BytesIn": 612497,
        "BytesOut": 484628,
        "Last": "2013-09-25T12:44:31.679-10:00",
        "SwitchLabel": "0000.0000.0000.0013",
        "IPv6": "fc77:db77:08a3:898d:161f:8de5:66fc:7689",
        "User": "herpderp",
        "RateIn": 138.88421139965084,
        "RateOut": 119.89995823254979,
        "LastUpdate": "2013-09-25T12:44:31.864414014-10:00"
    },
    "jufvunvsmy08r69dhhw1w170d26qj5kvybdcf45jbkrtw7pb7cl0.k": {
        "PublicKey": "jufvunvsmy08r69dhhw1w170d26qj5kvybdcf45jbkrtw7pb7cl0.k",
        "State": 3,
        "IsIncoming": false,
        "BytesIn": 0,
        "BytesOut": 20664,
        "Last": "2013-09-25T11:28:39.806-10:00",
        "SwitchLabel": "0000.0000.0000.0015",
        "IPv6": "fc19:782e:e609:1c2c:420b:7d2e:cca2:2e3d",
        "User": "merplerp",
        "RateIn": 0,
        "RateOut": 0,
        "LastUpdate": "2013-09-25T12:44:31.864411162-10:00"
    }
}
thefinn93 commented 11 years ago

Yup. I didn't see that in the actual JSON output, didn't check the README

inhies commented 11 years ago

Premature closation, sorry! I'm seeing a doctor about it....