NIXStats API release + usage examples
I'm posting some examples for the API since about 350 people from LET signed up for the NIXStats beta.
Anyone can read the api documentation at https://nixstats.com/api/documentation.html this covers the API endpoints as well as an example for the return data.
You can create an API key at the settings page under the api tab.
All data from the API is returned in JSON format. Successful calls will return a http 200, invalid calls will return something else. The API is limited to 1000 requests per hour, the amount of requests remaining/used is returned in the HTTP header as shown in the documentation.
I tried to post these examples on LET directly but cloudflare wouldn't let me so here are some links of basic examples:
Get a list of all domains: https://nixstats.com/api/domains.example.php.txt
Get a single domain: https://nixstats.com/api/domain.example.php.txt
Get a list of all servers: https://nixstats.com/api/servers.example.php.txt
Get a servers cpu usage from last hour: https://nixstats.com/api/server.example.php.txt
I'll try to post some more examples soon.
Comments
Thanks! I will try the API tomorrow.
Hey @vfuse , just wanted to let you know that Nix Stats truly is awesome and I know the community here is happy that you continue to work on it
It's indeed an amazing service! I truly love it!
Yes! Very much love and appreciate your work on NIXStats!
@vfuse Great work with nixstats its the great service I'm exited to see the finished product
Niceone! can't wait to tinker around with this ;D
Just got started with it and its amazing so far.
I'd like to try the python client though to check out the nginx and mysql plugins, is there any risk involved except it not working?
That's basically the worst I ever had, and it's simple to revert.
Thanks everyone
Here's an example that gets all the servers in your account and plots their location on google maps.
http://nixstats.com/api/googlemaps.php.txt
The python agent should be stable, there's not much that can go wrong, you do need python 2.7 on your server.
OK, I gave it a try, saw errors flashing by, too fast to read, reported it via your integrated feedback system. Need help to find the log and debug what went wrong. Reported a few other issues in the same place.
Btw. it looks like the agent downloads about 400MB or did I misread that?
The agent has some dependencies like python2.7 and some python plugins which are install via pip.
Using Python 2.7.3 - shouldn't it install its own dependencies? Where do I find the install log?
Wish i could have an invitation key...
just use BETA or LET
just set up with 2 domains and 3 servers.
love the interface, looks very clean and professional.
will try api soon.
@vfuse:
still struggling with installing the python client on one of my servers. Trying to figure it out. When the install starts I see these lines:
Yet I have no held or broken packages as confirmed with:
apt-get clean && apt-get update
dpkg --configure -a
apt-get upgrade
apt-get install -f
dpkg --get-selections | grep hold
None of thee commands return anything useful or any hints of anything broken or held.
Installed experimental version, got this on both servers Ubuntu 15.10 x64
But it's working, I can see them in dashboard. Looking really nice
I haven't had a good time with the Python version, but I've been on CentOS 6 only really, and don't want to modify the cPanel Python version.
Love the service and hoping you'll offer a one-time lifetime fee for LET / beta users if it goes paid @vfuse !
Constellix is about to go paid, and looking to go all in with Nixstats instead. Just worried about the pricing estimates in the long run, as I install it on every server of mine...
Often just to keep track of them.
tl;dr - thanks & thanks again
Thanks for the feedback everyone!
I've just added another API endpoint to fetch uptime of a server for a specific time period. https://nixstats.com/api/documentation.html#servers-servers-uptime
@Kris I'll announce more on pricing as soon as the new dashboard is up. There will be discount for beta users and also a free package. It will be a subscription based payment. It's hard to keep up quality with a one-time payment service (cloudatcost). Keeping up infrastructure is pricy as well. Feel free to give feedback on pricing or what you think is reasonable (either here or by pm).
Wasn't thinking cheap one time cost, more almost an investment in going public, upwards of $150 & assisting in beta to to polish things.
Perhaps the 3 tier model?
Starting at 3.99/month, 7.99/month, and finally 14.99/month, including the full monty for web hosts including CNAME's, etc.
Here's a pretty good article summarizing tiered pricing and methods of adding value.
Funny enough, CloudAtCost model can be done quite alright assuming you don't have ridiculous sales of 70-90% off randomly. TheForeverCloud is by TerraHost, and damn stable.
hi, your blog site looks down now. I tried to find a guide, and after a bit search, I found this:
www.nixstats.ovh/nixstats-python-agent/
but it shows error 503, only could be accessed through google cache.
Also, python process took 41mb RAM out of my 490mb, is it normal?
thanks for your work!
I've seen a kimsufi not having bandwidth being displayed
Shell installer.
Product is a gem
@vfuse why not add an online site API generator ? folks can then pick some feature they like and hit a button to generate a sample API code/html etc they can use
Looks like OVH took down the runabove hosted blog. I'll try to setup a new blog later this month.
Sounds like a good idea but a bit out of scope for now, have to focus on core features first.
Packaged pricing is a good idea and keeps things simple but I want to prevent users from signing up for example for a $10 per month 5 servers package if they only have 3 servers (why pay for 5 right?). Alternative would be pay per server or per hour, this would be most fair but makes things more complicated and harder for a user to see their costs.
Just got an e-mail from OVH that they accepted NIXStats for their Digital Launch Pad Program! I don't know how much use it will be yet but at least will save me some costs on servers.
Pricing similar to https://updown.io/ works quite well - it costs credits which you top up and you get charged by the time that you are monitoring.
Congratulations! I hope the cost savings are significant.
hi, just found that, nixstat doesn't seed any message to me when my servers reboot or even after poweroff, I did turn on the reboot notification tick.
after the server reboot, it still shows 100% uptime. I am using python version...
Yesterday there was a problem with one of the check servers (crond crashed) this should be solved now, started monitoring crond to prevent this.
I hope so too thanks!
The issue with credits is if you forget to top up you'll run out and won't get notifications anymore, to keep it simple it might be better to have a subscription model.
Hopefully the small amount of users from LET will have a free tier
+1, although great work worth money