mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-18 22:52:11 +01:00
01c8e12370
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6942 Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6706
12 lines
357 B
Plaintext
12 lines
357 B
Plaintext
{% stripspace %}
|
|
PrometheusErrorResponse generates error response for Prometheus Querying API.
|
|
See https://prometheus.io/docs/prometheus/latest/querying/api/#format-overview
|
|
{% func PrometheusErrorResponse(statusCode int, err error) %}
|
|
{
|
|
"status":"error",
|
|
"errorType":"{%d statusCode %}",
|
|
"error": {%q= err.Error() %}
|
|
}
|
|
{% endfunc %}
|
|
{% endstripspace %}
|