Back to Emissary

Emissary Diagnostic Overview

python/ambassador-diag/src/ambassador_diag/templates/overview.html

4.0.13.9 KB
Original Source

Emissary Diagnostic Overview

{% if system.debug_mode %}

DEBUG MODE

{% endif %} {%- include "system-info.html" -%} {%- include "guidance.html" -%} {% if notices %}

{% for notice in notices %} {{ notice.level }}: {{ notice.message }}
{% endfor %}

{% endif %} {% if errors %}

CONFIGURATION ERRORS {% for error in errors | sort %} - {% if error[0] %} {{ error[0] }}: {{ error[1] }} {% else %} {{ error[1] }} {% endif %} {% endfor %}

{% endif %}

Emissary Documentation

Getting Started | Using Emissary || Emissary Architecture | Emissary Listeners | | Running Emissary in Production | Emissary Hosts | | Troubleshooting Emissary | Emissary Mappings | | Statistics and Monitoring | Emissary Plugins |

{% if ambassador_services %}

Emissary Services In Use

Type | Service | Weight | {% for service in ambassador_services %} | {{ service.type }} | {{ service.name }} | {{ service._service_weight }}% | {% endfor %}

{% endif %} {% if ambassador_resolvers %}

Emissary Resolvers In Use

Kind | Resolver | {% for resolver in ambassador_resolvers %} | {{ resolver.kind }} | {{ resolver.name }} | {% endfor %}

{% endif %}

Emissary Route Table

URL | Service | Weight | {% for route in route_info %} | [ ` {%- if route.diag_class == "private" -%}[internal route]{%- endif -%} {{ route.key }} {% if route['headers'] %} {% for hdr in route['headers'] %}

                          {{ hdr['name'] }}: {{ hdr['value'] }}
                        {% endfor %}
                      {% endif %}
                      {% if route['precedence'] != 0 %}

                        precedence {{ route.precedence }}
                      {% endif %}
                      ` ](/ambassador/v0/diag/grp-{{%20route['_group_id']%20}}) | {% for cluster in route.clusters| sort\_clusters\_by\_service %} [ `
                          {% if cluster.type_label %}
                            {{ cluster.type_label }}:
                          {% endif %}
                          {{ cluster.service }}
                        ` ](/ambassador/v0/diag/{{%20route['_source']%20}}) {% if not loop.last %}   

{% endif %} {% endfor %} | {% for cluster in route.clusters| sort_clusters_by_service %} {{ ((cluster.weight * 10.0) + 0.9) // 10 }}% {% if not loop.last %}
{% endif %} {% endfor %} | {% endfor %}

Emissary TCP Mappings

Name | Port | Source | Service | {% for group_id, group in groups.items() if group.kind == "IRTCPMappingGroup" %} | ` {{ group.name | replace("GROUP: ", "") }} {% if group['host'] %}

                      host: {{ group['host'] }}
                    {% endif %}
                  ` | {{ group.port }} | {{ group.location }} | {% if group['mappings'] %} {% for mapping in group['mappings'] %} {{ mapping.cluster\_service }} {% endfor %} {% endif %} | {% endfor %}

Color Legend

| Color | Success Rate | | Red | 0% - 70% | | Yellow | 70% - 90% | | Green | 90% - 100% | | Gray | Unknown |