mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-05 01:01:09 +01:00
c9bb4ddeed
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 %}
|