statuspage: api_key: <%= @api_key %> page_id: <%= @page_id %> # Optional section -- if you need to use proxies to access certain types of # resources (graphite, prometheus, statuspage), put them here. The format of # each sub-section follows the Requests library API and is a map from # URL fetch protocol to a proxy URL. proxies: <%- @proxies.each_pair do |name, config| -%> <%= name %>: <%- config.each_pair do |proxy_type, proxy|-%> <%= proxy_type %>: <%= proxy %> <%- end -%> <%- end -%> # Each metric needs its API ID on statuspage.io, then a data source (either # 'prometheus' or 'graphite') with a URL, and also, a query string to execute. metrics: <%- @metrics.each do |metric| -%> <%- metric.each_paior do |key, value| -%> - <%- key -%>: <%- value -%> <%- end -%> <%- end -%>