mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 12:31:07 +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 %}
|