|
10 | 10 | using Smdn.Net.MuninNode; |
11 | 11 | using Smdn.Net.MuninPlugin; |
12 | 12 |
|
13 | | -const string nodeHostName = "test.munin-node.localhost"; |
14 | | -const int nodePort = 14949; |
| 13 | +const string NodeHostName = "test.munin-node.localhost"; |
| 14 | +const int NodePort = 14949; |
15 | 15 |
|
16 | 16 | var startAt = DateTime.Now; |
17 | 17 |
|
18 | 18 | // Define plugins |
19 | 19 | var plugins = new[] { |
20 | 20 | PluginFactory.CreatePlugin( |
21 | 21 | name: "uptime", |
22 | | - fieldLabel: nodeHostName, |
| 22 | + fieldLabel: NodeHostName, |
23 | 23 | // Specify 'AREA' as the drawing style for values on the graph |
24 | 24 | fieldGraphStyle: PluginFieldGraphStyle.Area, |
25 | 25 | // Set the number of minutes elapsed from the start time of the process as the 'uptime' value. |
|
29 | 29 | // 'Well known categories' are defined by Munin. |
30 | 30 | // See https://guide.munin-monitoring.org/en/latest/reference/graph-category.html |
31 | 31 | category: "system", |
32 | | - title: $"Uptime of {nodeHostName}", |
| 32 | + title: $"Uptime of {NodeHostName}", |
33 | 33 | verticalLabel: "Uptime [minutes]", |
34 | 34 | scale: false, |
35 | 35 | // Specify arguments for graph drawing. See below for more information about graph arguments: |
|
56 | 56 | // Create LocalNode |
57 | 57 | await using var node = new LocalNode( |
58 | 58 | plugins: plugins, |
59 | | - hostName: nodeHostName, |
60 | | - port: nodePort, |
| 59 | + hostName: NodeHostName, |
| 60 | + port: NodePort, |
61 | 61 | serviceProvider: services.BuildServiceProvider() |
62 | 62 | ); |
63 | 63 |
|
|
0 commit comments