Newer
Older
{
"alias": "{{ alias }}",
"groupBy": [
{% if not percentile %}
{
"params": ["5m"],
"type": "time"
},
{
"params": ["linear"],
"type": "fill"
}
{% endif %}
],
{% if measurement %}
"measurement": "{{ measurement }}",
{% else %}
"measurement": "interface_rates",
"orderByTime": null,
"policy": null,
"refId": "{{ refId }}",
"resultFormat": "time_series",
"select": [
[
{
"params": ["{{ select_field }}"],
"type": "field"
},
{% if not percentile %}
{
"params": [],
"type": "mean"
},
{% else %}
{
"params": [95],
"type": "percentile"
},
{% endif %}
{
"params": ["*8"],
"type": "math"
}
]
],
"tags": [
{
"condition": null,
"key": "hostname",
"operator": "=",
"value": "{{ hostname }}"
},
{
"condition": "AND",
"key": "interface_name",
"operator": "=",
"value": "{{ interface }}"
}
{% else %}
{
"condition": null,
"key": "tag",
"operator": "=",
"value": "{{ interface_tag }}"
},
{
"condition": "AND",
"key": "isp",
"operator": "=",
"value": "{{ isp }}"
},
{
"condition": "AND",
"key": "nren",
"operator": "=",
"value": "{{ nren }}"
}
{% endif %}