-
Bjarke Madsen authoredBjarke Madsen authored
panel_target.json.j2 1.22 KiB
{
"alias": "{{ alias }}",
"groupBy": [
{% if not percentile %}
{
"params": ["5m"],
"type": "time"
},
{
"params": ["linear"],
"type": "fill"
}
{% endif %}
],
"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 }}"
}
]
}