{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %} {% set time = collector.time ? '%0.0f'|format(collector.time) : 'n/a' %} {% set icon %} {{ include('@Elasticsearch/Collector/icon.svg') }} {{ time }} ms {% endset %} {% set text %} {% if collector.enabled %}
Request Time {{ time }} ms
Requests {{ collector.requestAmount }}
Name {{ collector.clusterInfo.cluster_name }}
Status {{ collector.clusterInfo.status }}
Node(s) {{ collector.clusterInfo.number_of_nodes }}
{% else %}
Elasticsearch disabled
{% endif %} {% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url }) }} {% endblock %} {% block menu %} {{ include('@Elasticsearch/Collector/icon.svg') }} Elasticsearch {% endblock %} {% block panel %} {% if collector.enabled %}

Query Metrics

{{ '%0.2f'|format(collector.time) }} ms Query Time
{{ collector.clusterInfo.number_of_nodes }} Node(s)
{{ collector.indices|length }} Indices

Queries

{% if collector.requestAmount == 0 %}

No queries were performed.

{% else %} {% for key, query in collector.requests %} {% endfor %}
# Execution Time Info
{{ loop.index }} {{ '%0.2f'|format(query.time * 1000) }} ms Request:
{{ query.request|json_encode }}
Item count: {{ query.response.hits.total.value }}
View formatted request View formatted response {% if query.backtrace is defined %}   View query backtrace {% endif %}
{% if query.backtrace is defined %} {% endif %}

Cluster Status

{{ collector.clusterInfo|json_encode(constant('JSON_PRETTY_PRINT')) }}

Indices

{% for index in collector.indices %} {% endfor %}
Name Status Replication (pri, rep) Doc Count
{{ index.index }} {{ index.status }} {{ index.pri }}, {{ index.rep }} {{ index['docs.count'] }}
{% endif %} {% else %}

Elasticsearch was not enabled in this request.

{% endif %} {% endblock %}