Exemples

Power configuration examples

Here you can find multiple examples of driver configuration for Kwapi

1 PDU 2 nodes

2 nodes connected to 1 PDU.

_images/1pdu2nodes.png
drivers.conf
[grisou-pdu1]
probes = ['nancy.grisou-pdu1.1', 'nancy.grisou-pdu1.2' ]
probes_names = ['nancy.grisou-1', 'nancy.grisou-2']
data_type = {'name':'power', 'type':'Gauge', 'unit':'W'}

1 PDU, 1 node, multiple PSU

1 Node with 2 PSU (Power Supply Unit) connected to 1 PDU.

_images/1pdu1node_multi.png
drivers.conf
[grisou-pdu1]
probes = ['nancy.grisou-pdu1.1', 'nancy.grisou-pdu1.2' ]
probes_names = ['nancy.grisou-1', 'nancy.grisou-1']
data_type = {'name':'power', 'type':'Gauge', 'unit':'W'}

1 PDU, shared measure, 2 nodes

2 nodes connected to a non-monitorable PDU. The non-monitorable PDU in red is connected to a monitorable PDU. It is equivalent to a shared consumption measure for the 2 nodes.

_images/1pdu2nodes_shared.png
drivers.conf
# No info on pdu1
[grisou-pdu2]
probes = ['nancy.grisou-pdu2.1', ]
probes_names = [['nancy.grisou-1', 'nancy.grisou-2']]
data_type = {'name':'power', 'type':'Gauge', 'unit':'W'}

2 PDU, 1 node, 2 PSU

1 node with 2 PSU connected to 2 different PDU.

_images/2pdu1node_multi.png
drivers.conf
[grisou-pdu1]
probes = ['nancy.grisou-pdu1.1', ]
probes_names = [['nancy.grisou-1']]
data_type = {'name':'power', 'type':'Gauge', 'unit':'W'}

[grisou-pdu2]
probes = ['nancy.grisou-pdu2.1', ]
probes_names = [['nancy.grisou-1']]
data_type = {'name':'power', 'type':'Gauge', 'unit':'W'}

Network configuration examples

1 Switch 2 nodes

2 nodes connected to 1 switch.

_images/1switch2nodes.png
drivers.conf
[sgrisou1-IN]
probes = ['nancy.sgrisou1.1-0', 'nancy.sgrisou1.1-1']
probes_names = ['nancy.grisou-1', 'nancy.grisou-2']
data_type = {'name':'network_in', 'type':'Cumulative', 'unit':'B'}

[sgrisou1-OUT]
probes = ['nancy.sgrisou1.1-0', 'nancy.sgrisou1.1-1']
probes_names = ['nancy.grisou-1', 'nancy.grisou-2']
data_type = {'name':'network_out', 'type':'Cumulative', 'unit':'B'}

1 Switch, 1 node, multiple network interfaces

1 Node with 2 network interfaces (eth0 and eth1) connected to 1 switch.

_images/1switch1node_multi.png
drivers.conf
[sgrisou1-IN]
probes = ['nancy.sgrisou1.1-0', 'nancy.sgrisou1.1-1']
probes_names = ['nancy.grisou-1', 'nancy.grisou-1-eth1']
data_type = {'name':'network_in', 'type':'Cumulative', 'unit':'B'}

[sgrisou1-OUT]
probes = ['nancy.sgrisou1.1-0', 'nancy.sgrisou1.1-1']
probes_names = ['nancy.grisou-1', 'nancy.grisou-1-eth1']
data_type = {'name':'network_out', 'type':'Cumulative', 'unit':'B'}

1 switch, shared measure, 2 nodes

2 nodes connected to a non-monitorable switch. The non-monitorable switch in red is connected to a monitorable switch in green. It is equivalent to a shared bandwitch measure for the 2 nodes.

_images/1switch2nodes_shared.png
drivers.conf
# No info for sgrisou1
[sgrisou2-IN]
probes = ['nancy.sgrisou2.1-0', ]
probes_names = [['nancy.grisou-1', 'nancy.grisou-2']]
data_type = {'name':'network_in', 'type':'Cumulative', 'unit':'B'}

[sgrisou2-OUT]
probes = ['nancy.sgrisou2.1-0', ]
probes_names = [['nancy.grisou-1', 'nancy.grisou-2']]
data_type = {'name':'network_out', 'type':'Cumulative', 'unit':'B'}

2 switches, 1 node, 2 network interfaces

1 node with 2 network interfaces connected to 2 different switches.

_images/2switch1node_multi.png
drivers.conf
[sgrisou1-IN]
probes = ['nancy.sgrisou1.1-0', ]
probes_names = ['nancy.grisou-1',]
data_type = {'name':'network_in', 'type':'Cumulative', 'unit':'B'}

[sgrisou1-OUT]
probes = ['nancy.sgrisou1.1-0', ]
probes_names = ['nancy.grisou-1',]
data_type = {'name':'network_out', 'type':'Cumulative', 'unit':'B'}

[sgrisou2-IN]
probes = ['nancy.sgrisou2.1-0', ]
probes_names = ['nancy.grisou-1']
data_type = {'name':'network_in', 'type':'Cumulative', 'unit':'B'}

[sgrisou2-OUT]
probes = ['nancy.sgrisou2.1-0', ]
probes_names = ['nancy.grisou-1-eth1']
data_type = {'name':'network_out', 'type':'Cumulative', 'unit':'B'}