Closed gasmick closed 4 years ago
Host checks != Service checks, see you influxdb or graphite writer configuration. Its clearly dokumented that you have to create a graph config for the command for host checks.
This is the Influxdbwriter configuration:
host_template = {
measurement = "$host.check_command$"
tags = {
hostname = "$host.name$"
}
}
service_template = {
measurement = "$service.check_command$"
tags = {
hostname = "$host.name$"
service = "$service.name$"
}
}
The documentation states:
For host you just need to use the check_command name as service name for the graph configuration.
and proceeds to show how a graph for hosts is added.
Accordingly, I have dozens of host graphs that all work properly.
What I have referred to is the default dashboard, which is shown when a new host check or service check is introduced, that doesn't have a corresponding dashboard entry in the "Graphs" list.
Please be so kind to point me to the right spot in the documentation, if i have missed it.
Expected Behavior
var-service in the URL passed to Grafana is empty for Host graphs
Current Behavior
var-service in the URL passed to Grafana has the value of var-command for Host graphs
Possible Solution
Steps to Reproduce (for bugs)
Context
In default Grafana dashboards, used for both hosts and services, there will naturally be grafana Variable $service. With current behaviour it is filled with a non-existent value of var-command. This results in an empty panel graph, because grafana doesn't find the data for this service value. If it is passed as 'var-service=' then the value is set to None, and the panel graph shows host metric.
Your Environment
icinga2 --version
): 2.11.3icinga2 feature list
): api checker command ido-mysql influxdb mainlog notificationicinga2 daemon -C
):