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
(Use HTTPS for Ganglia)
imported>Krinkle
(Add TemplateData)
 
Line 1: Line 1:
[https://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>


The location of the install changed a bit, to avoid a mass url breakage again, centralized here. Also for general convenience.  
This template helps abstract links to Ganglia. It also helps centralise url location in case we move or rename it (again).
 


== 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