-
Notifications
You must be signed in to change notification settings - Fork 1
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
status.cocoapods.org #25
Comments
Prototype it in https://app.ducksboard.com/ and see if that will deal with being the server. |
https://www.statuspage.io offered us a free account |
I've just had a look around with StatusPage and it looks like a nice and flexible system. However we will also need a secondary "provider" to tie into StatusPage to provide metrics. They support the following:
We can use "subscribers" to give us campfire notifications when something is down. There is an API, however I can't determine if it let's us view a public status without authentication for use in the command line status. I've tweeted them and will update when I find out. Custom metricsWe can also manually add metrics from code (example in Ruby). This means that trunk/search/cocoadocs can actually send data in such as the following metrics:
Here are the rules for metrics:
Example code in Ruby for sending a metricrequire 'rubygems'
require 'httparty'
# the following 4 are the actual values that pertain to your account and this specific metric
api_key = 'REDCATED'
page_id = 'REDCATED'
metric_id = 'REDCATED'
api_base = 'https://api.statuspage.io/v1'
# need at least 1 data point for every 5 minutes
# submit random data for the whole day
total_points = (60 / 5 * 24)
total_points.times.each do |i|
dhash = {
:timestamp => Time.now.to_i - i * 5 * 60,
:value => rand(100)
}
HTTParty.post(
"#{api_base}/pages/#{page_id}/metrics/#{metric_id}/data.json",
:headers => {
'Authorization' => "OAuth #{api_key}",
},
:body => {
:data => dhash
}
)
puts "Submitted point #{i+1} of #{total_points}"
end Documentation: http://doers.statuspage.io/api/v1/metrics/ |
"Unofficial" way to view status page is the
https://twitter.com/statuspageio/status/436146802132537344 |
@kylef Can they also pull a metric? |
@floere I can't find any API/method for setting that up, I think it's push only. |
This now exists 👍 |
A simple appfog/dotcoud app that receives pings from some cocoapods components and has a js page that does a look at whether things are up or not.
Requires:
externals
internals
web page
The text was updated successfully, but these errors were encountered: