Page MenuHomePhabricator
Paste P16813

(An Untitled Masterwork)
ActivePublic

Authored by jbond on Jul 12 2021, 1:20 PM.
Tags
None
Referenced Files
F34548599: raw-paste-data.txt
Jul 12 2021, 1:20 PM
Subscribers
None
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 -%>