You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Difference between revisions of "Template:Ganglia"

From Wikitech-static
Jump to navigation Jump to search
imported>Krinkle
(+docs; +cat)
 
imported>Krinkle
(Add TemplateData)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[http://ganglia.wikimedia.org/?r={{urlencode:{{{r|day}}}}}&c={{urlencode:{{{cluster|}}}}}{{#if:{{{node|}}}|&h={{urlencode:{{{node|}}}}}}} {{{label|Ganglia status}}}]<noinclude>
[https://ganglia.wikimedia.org/?r={{urlencode:{{{r|day}}}}}&c={{urlencode:{{{cluster|}}}}}{{#if:{{{node|}}}|&h={{urlencode:{{{node|}}}}}}} {{{label|Ganglia status}}}]<noinclude>
 
This template helps abstract links to Ganglia. It also helps centralise url location in case we move or rename it (again).


The location of the install changed a bit, to avoid a mass url breakage again, centralized here. Also for general convenience.


== Usage ==
== Usage ==
Line 7: Line 8:
  {{Ganglia|cluster= .. |node= .. }}
  {{Ganglia|cluster= .. |node= .. }}
</pre>
</pre>
<templatedata>
{
"params": {
"r": {
"label": "Time range",
"description": "E.g. \"hour\", \"2hr\", \"day\", \"week\" etc.",
"example": "day",
"type": "string"
},
"cluster": {
"label": "Server group",
"type": "string",
"required": true
},
"node": {
"label": "Node name",
"required": true,
"type": "string"
},
"label": {
"description": "Label for the link",
"type": "string",
"default": "Ganglia status"
}
},
"paramOrder": [
"node",
"cluster",
"label",
"r"
]
}
</templatedata>


== See also ==
== See also ==

Latest revision as of 03:32, 23 September 2015

Ganglia status

This template helps abstract links to Ganglia. It also helps centralise url location in case we move or rename it (again).


Usage

 {{Ganglia|cluster= .. |node= .. }}


<templatedata> { "params": { "r": { "label": "Time range", "description": "E.g. \"hour\", \"2hr\", \"day\", \"week\" etc.", "example": "day", "type": "string" }, "cluster": { "label": "Server group", "type": "string", "required": true }, "node": { "label": "Node name", "required": true, "type": "string" }, "label": { "description": "Label for the link", "type": "string", "default": "Ganglia status" } }, "paramOrder": [ "node", "cluster", "label", "r" ] } </templatedata>

See also