mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 12:31:07 +01:00
12 lines
379 B
Plaintext
12 lines
379 B
Plaintext
{% stripspace %}
|
|
|
|
MetricsIndexResponse generates response for /metrics/index.json .
|
|
See https://graphite-api.readthedocs.io/en/latest/api.html#metrics-index-json
|
|
{% func MetricsIndexResponse(metricNames []string, jsonp string) %}
|
|
{% if jsonp != "" %}{%s= jsonp %}({% endif %}
|
|
{%= metricPaths(metricNames) %}
|
|
{% if jsonp != "" %}){% endif %}
|
|
{% endfunc %}
|
|
|
|
{% endstripspace %}
|