fluent-plugin-juniper-telemetry 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/firewall.pb.rb +83 -0
- data/lib/fluent/plugin/parser_juniper_analyticsd.rb +125 -0
- data/lib/fluent/plugin/parser_juniper_jti.rb +282 -0
- data/lib/fluent/plugin/parser_juniper_na.rb +147 -0
- data/lib/google/protobuf/descriptor.pb.rb +289 -0
- data/lib/jvision_top.pb.rb +59 -0
- data/lib/logical_port.pb.rb +74 -0
- data/lib/lsp_mon.pb.rb +109 -0
- data/lib/lsp_stats.pb.rb +46 -0
- data/lib/port.pb.rb +89 -0
- metadata +106 -0
@@ -0,0 +1,74 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
##
|
4
|
+
# This file is auto-generated. DO NOT EDIT!
|
5
|
+
#
|
6
|
+
require 'protobuf/message'
|
7
|
+
|
8
|
+
|
9
|
+
##
|
10
|
+
# Imports
|
11
|
+
#
|
12
|
+
require 'jvision_top.pb'
|
13
|
+
|
14
|
+
|
15
|
+
##
|
16
|
+
# Message Classes
|
17
|
+
#
|
18
|
+
class LogicalPort < ::Protobuf::Message; end
|
19
|
+
class LogicalInterfaceInfo < ::Protobuf::Message; end
|
20
|
+
class IngressInterfaceStats < ::Protobuf::Message; end
|
21
|
+
class EgressInterfaceStats < ::Protobuf::Message; end
|
22
|
+
class OperationalState < ::Protobuf::Message; end
|
23
|
+
class ForwardingClassAccounting < ::Protobuf::Message; end
|
24
|
+
|
25
|
+
|
26
|
+
##
|
27
|
+
# Message Fields
|
28
|
+
#
|
29
|
+
class LogicalPort
|
30
|
+
repeated ::LogicalInterfaceInfo, :interface_info, 1
|
31
|
+
end
|
32
|
+
|
33
|
+
class LogicalInterfaceInfo
|
34
|
+
required :string, :if_name, 1
|
35
|
+
required :uint64, :init_time, 2
|
36
|
+
optional :uint32, :snmp_if_index, 3
|
37
|
+
optional :string, :parent_ae_name, 4
|
38
|
+
optional ::IngressInterfaceStats, :ingress_stats, 5
|
39
|
+
optional ::EgressInterfaceStats, :egress_stats, 6
|
40
|
+
optional ::OperationalState, :op_state, 7
|
41
|
+
end
|
42
|
+
|
43
|
+
class IngressInterfaceStats
|
44
|
+
required :uint64, :if_packets, 1
|
45
|
+
required :uint64, :if_octets, 2
|
46
|
+
optional :uint64, :if_ucast_packets, 3
|
47
|
+
required :uint64, :if_mcast_packets, 4
|
48
|
+
repeated ::ForwardingClassAccounting, :if_fc_stats, 5
|
49
|
+
end
|
50
|
+
|
51
|
+
class EgressInterfaceStats
|
52
|
+
required :uint64, :if_packets, 1
|
53
|
+
required :uint64, :if_octets, 2
|
54
|
+
end
|
55
|
+
|
56
|
+
class OperationalState
|
57
|
+
optional :string, :operational_status, 1
|
58
|
+
end
|
59
|
+
|
60
|
+
class ForwardingClassAccounting
|
61
|
+
optional :string, :if_family, 1
|
62
|
+
optional :uint32, :fc_number, 2
|
63
|
+
optional :uint64, :if_packets, 3
|
64
|
+
optional :uint64, :if_octets, 4
|
65
|
+
end
|
66
|
+
|
67
|
+
|
68
|
+
##
|
69
|
+
# Extended Message Fields
|
70
|
+
#
|
71
|
+
class ::JuniperNetworksSensors < ::Protobuf::Message
|
72
|
+
optional ::LogicalPort, :jnprLogicalInterfaceExt, 7, :extension => true
|
73
|
+
end
|
74
|
+
|
data/lib/lsp_mon.pb.rb
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
##
|
4
|
+
# This file is auto-generated. DO NOT EDIT!
|
5
|
+
#
|
6
|
+
require 'protobuf/message'
|
7
|
+
|
8
|
+
|
9
|
+
##
|
10
|
+
# Enum Classes
|
11
|
+
#
|
12
|
+
class Lsp_event < ::Protobuf::Enum
|
13
|
+
define :INITIATED, 0
|
14
|
+
define :CONCLUDED_UP, 1
|
15
|
+
define :CONCLUDED_TORN_DOWN, 2
|
16
|
+
define :PROTECTION_AVAILABLE, 3
|
17
|
+
define :PROTECTION_UNAVAILABLE, 4
|
18
|
+
define :AUTOBW_SUCCESS, 5
|
19
|
+
define :AUTOBW_FAIL, 6
|
20
|
+
define :RESV_TEAR_RECEIVED, 7
|
21
|
+
define :DESELECT_ACTIVE_PATH, 8
|
22
|
+
define :CHANGE_ACTIVE_PATH, 9
|
23
|
+
define :DETOUR_UP, 10
|
24
|
+
define :DETOUR_DOWN, 11
|
25
|
+
define :ORIGINATE_MBB, 12
|
26
|
+
define :SELECT_ACTIVE_PATH, 13
|
27
|
+
define :CSPF_NO_ROUTE, 14
|
28
|
+
define :CSPF_SUCCESS, 15
|
29
|
+
define :RESTART_RECOVERY_FAIL, 16
|
30
|
+
define :PATHERR_RECEIVED, 17
|
31
|
+
define :PATH_MTU_CHANGE, 18
|
32
|
+
define :TUNNEL_LOCAL_REPAIRED, 19
|
33
|
+
end
|
34
|
+
|
35
|
+
class Event_subcode < ::Protobuf::Enum
|
36
|
+
define :ADMISSION_CONTROL_FAILURE, 1
|
37
|
+
define :SESSION_PREEMPTED, 2
|
38
|
+
define :BAD_LOOSE_ROUTE, 3
|
39
|
+
define :BAD_STRICT_ROUTE, 4
|
40
|
+
define :LABEL_ALLOCATION_FAILURE, 5
|
41
|
+
define :NON_RSVP_CAPABLE_ROUTER, 6
|
42
|
+
define :TTL_EXPIRED, 7
|
43
|
+
define :ROUTING_LOOP_DETECTED, 8
|
44
|
+
define :REQUESTED_BANDWIDTH_UNAVAILABLE, 9
|
45
|
+
end
|
46
|
+
|
47
|
+
|
48
|
+
##
|
49
|
+
# Message Classes
|
50
|
+
#
|
51
|
+
class Key < ::Protobuf::Message; end
|
52
|
+
class Lsp_monitor_data_event < ::Protobuf::Message; end
|
53
|
+
class Ero_type_entry < ::Protobuf::Message; end
|
54
|
+
class Ero_ipv4_type < ::Protobuf::Message; end
|
55
|
+
class Rro_type_entry < ::Protobuf::Message; end
|
56
|
+
class Rro_ipv4_type < ::Protobuf::Message; end
|
57
|
+
class Lsp_monitor_data_property < ::Protobuf::Message; end
|
58
|
+
class Lsp_mon < ::Protobuf::Message; end
|
59
|
+
|
60
|
+
|
61
|
+
##
|
62
|
+
# Message Fields
|
63
|
+
#
|
64
|
+
class Key
|
65
|
+
required :string, :name, 1
|
66
|
+
required :int32, :instance_identifier, 2
|
67
|
+
required :uint64, :time_stampg, 3
|
68
|
+
end
|
69
|
+
|
70
|
+
class Lsp_monitor_data_event
|
71
|
+
required ::Lsp_event, :event_identifier, 1
|
72
|
+
optional ::Event_subcode, :subcode, 2
|
73
|
+
end
|
74
|
+
|
75
|
+
class Ero_type_entry
|
76
|
+
required :uint32, :ip, 1
|
77
|
+
optional :string, :flags, 2
|
78
|
+
end
|
79
|
+
|
80
|
+
class Ero_ipv4_type
|
81
|
+
repeated ::Ero_type_entry, :entry, 1
|
82
|
+
end
|
83
|
+
|
84
|
+
class Rro_type_entry
|
85
|
+
optional :uint32, :nodeid, 1
|
86
|
+
optional :uint32, :flags, 2
|
87
|
+
optional :uint32, :intf_addr, 3
|
88
|
+
optional :uint32, :label, 4
|
89
|
+
end
|
90
|
+
|
91
|
+
class Rro_ipv4_type
|
92
|
+
repeated ::Rro_type_entry, :rro_entry, 1
|
93
|
+
end
|
94
|
+
|
95
|
+
class Lsp_monitor_data_property
|
96
|
+
optional :uint64, :bandwidth, 1
|
97
|
+
optional :string, :path_name, 2
|
98
|
+
optional :int32, :metric, 3
|
99
|
+
optional :float, :max_avg_bw, 4
|
100
|
+
optional ::Ero_ipv4_type, :ero, 5
|
101
|
+
optional ::Rro_ipv4_type, :rro, 6
|
102
|
+
end
|
103
|
+
|
104
|
+
class Lsp_mon
|
105
|
+
required ::Key, :key_field, 1
|
106
|
+
optional ::Lsp_monitor_data_event, :event_field, 2
|
107
|
+
optional ::Lsp_monitor_data_property, :property_field, 3
|
108
|
+
end
|
109
|
+
|
data/lib/lsp_stats.pb.rb
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
##
|
4
|
+
# This file is auto-generated. DO NOT EDIT!
|
5
|
+
#
|
6
|
+
require 'protobuf/message'
|
7
|
+
|
8
|
+
|
9
|
+
##
|
10
|
+
# Imports
|
11
|
+
#
|
12
|
+
require 'jvision_top.pb'
|
13
|
+
|
14
|
+
|
15
|
+
##
|
16
|
+
# Message Classes
|
17
|
+
#
|
18
|
+
class LspStats < ::Protobuf::Message; end
|
19
|
+
class LspStatsRecord < ::Protobuf::Message; end
|
20
|
+
|
21
|
+
|
22
|
+
##
|
23
|
+
# Message Fields
|
24
|
+
#
|
25
|
+
class LspStats
|
26
|
+
repeated ::LspStatsRecord, :lsp_stats_records, 1
|
27
|
+
end
|
28
|
+
|
29
|
+
class LspStatsRecord
|
30
|
+
required :string, :name, 1
|
31
|
+
required :uint32, :instance_identifier, 2
|
32
|
+
required :string, :counter_name, 3
|
33
|
+
optional :uint64, :packets, 4
|
34
|
+
optional :uint64, :bytes, 5
|
35
|
+
optional :uint64, :packet_rate, 6
|
36
|
+
optional :uint64, :byte_rate, 7
|
37
|
+
end
|
38
|
+
|
39
|
+
|
40
|
+
##
|
41
|
+
# Extended Message Fields
|
42
|
+
#
|
43
|
+
class ::JuniperNetworksSensors < ::Protobuf::Message
|
44
|
+
optional ::LspStats, :jnpr_lsp_statistics_ext, 5, :extension => true
|
45
|
+
end
|
46
|
+
|
data/lib/port.pb.rb
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
##
|
4
|
+
# This file is auto-generated. DO NOT EDIT!
|
5
|
+
#
|
6
|
+
require 'protobuf/message'
|
7
|
+
|
8
|
+
|
9
|
+
##
|
10
|
+
# Imports
|
11
|
+
#
|
12
|
+
require 'jvision_top.pb'
|
13
|
+
|
14
|
+
|
15
|
+
##
|
16
|
+
# Message Classes
|
17
|
+
#
|
18
|
+
class GPort < ::Protobuf::Message; end
|
19
|
+
class InterfaceInfos < ::Protobuf::Message; end
|
20
|
+
class InterfaceStats < ::Protobuf::Message; end
|
21
|
+
class IngressInterfaceErrors < ::Protobuf::Message; end
|
22
|
+
class QueueStats < ::Protobuf::Message; end
|
23
|
+
|
24
|
+
|
25
|
+
##
|
26
|
+
# Message Fields
|
27
|
+
#
|
28
|
+
class GPort
|
29
|
+
repeated ::InterfaceInfos, :interface_stats, 1
|
30
|
+
end
|
31
|
+
|
32
|
+
class InterfaceInfos
|
33
|
+
required :string, :if_name, 1
|
34
|
+
required :uint64, :init_time, 2
|
35
|
+
optional :uint32, :snmp_if_index, 3
|
36
|
+
optional :string, :parent_ae_name, 4
|
37
|
+
repeated ::QueueStats, :egress_queue_info, 5
|
38
|
+
repeated ::QueueStats, :ingress_queue_info, 6
|
39
|
+
optional ::InterfaceStats, :ingress_stats, 7
|
40
|
+
optional ::InterfaceStats, :egress_stats, 8
|
41
|
+
optional ::IngressInterfaceErrors, :ingress_errors, 9
|
42
|
+
end
|
43
|
+
|
44
|
+
class InterfaceStats
|
45
|
+
required :uint64, :if_pkts, 1
|
46
|
+
required :uint64, :if_octets, 2
|
47
|
+
required :uint64, :if_1sec_pkts, 3
|
48
|
+
required :uint64, :if_1sec_octets, 4
|
49
|
+
required :uint64, :if_uc_pkts, 5
|
50
|
+
required :uint64, :if_mc_pkts, 6
|
51
|
+
required :uint64, :if_bc_pkts, 7
|
52
|
+
end
|
53
|
+
|
54
|
+
class IngressInterfaceErrors
|
55
|
+
optional :uint64, :if_in_errors, 1
|
56
|
+
optional :uint64, :if_in_qdrops, 2
|
57
|
+
optional :uint64, :if_in_frame_errors, 3
|
58
|
+
optional :uint64, :if_in_discards, 4
|
59
|
+
optional :uint64, :if_in_runts, 5
|
60
|
+
optional :uint64, :if_in_l3_incompletes, 6
|
61
|
+
optional :uint64, :if_in_l2chan_errors, 7
|
62
|
+
optional :uint64, :if_in_l2_mismatch_timeouts, 8
|
63
|
+
optional :uint64, :if_in_fifo_errors, 9
|
64
|
+
optional :uint64, :if_in_resource_errors, 10
|
65
|
+
end
|
66
|
+
|
67
|
+
class QueueStats
|
68
|
+
optional :uint32, :queue_number, 1
|
69
|
+
optional :uint64, :packets, 2
|
70
|
+
optional :uint64, :bytes, 3
|
71
|
+
optional :uint64, :tail_drop_packets, 4
|
72
|
+
optional :uint64, :rl_drop_packets, 5
|
73
|
+
optional :uint64, :rl_drop_bytes, 6
|
74
|
+
optional :uint64, :red_drop_packets, 7
|
75
|
+
optional :uint64, :red_drop_bytes, 8
|
76
|
+
optional :uint64, :avg_buffer_occupancy, 9
|
77
|
+
optional :uint64, :cur_buffer_occupancy, 10
|
78
|
+
optional :uint64, :peak_buffer_occupancy, 11
|
79
|
+
optional :uint64, :allocated_buffer_size, 12
|
80
|
+
end
|
81
|
+
|
82
|
+
|
83
|
+
##
|
84
|
+
# Extended Message Fields
|
85
|
+
#
|
86
|
+
class ::JuniperNetworksSensors < ::Protobuf::Message
|
87
|
+
optional ::GPort, :jnpr_interface_ext, 3, :extension => true
|
88
|
+
end
|
89
|
+
|
metadata
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fluent-plugin-juniper-telemetry
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.8
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Damien Garros
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2016-03-27 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: fluentd
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.10.58
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.10.58
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: protobuf
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rake
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
description: ! 'Input plugin for Fluentd for Juniper devices telemetry data streaming
|
63
|
+
: Jvision / analyticsd etc ..'
|
64
|
+
email:
|
65
|
+
- dgarros@gmail.com
|
66
|
+
executables: []
|
67
|
+
extensions: []
|
68
|
+
extra_rdoc_files: []
|
69
|
+
files:
|
70
|
+
- lib/fluent/plugin/parser_juniper_analyticsd.rb
|
71
|
+
- lib/fluent/plugin/parser_juniper_jti.rb
|
72
|
+
- lib/fluent/plugin/parser_juniper_na.rb
|
73
|
+
- lib/firewall.pb.rb
|
74
|
+
- lib/jvision_top.pb.rb
|
75
|
+
- lib/logical_port.pb.rb
|
76
|
+
- lib/lsp_mon.pb.rb
|
77
|
+
- lib/lsp_stats.pb.rb
|
78
|
+
- lib/port.pb.rb
|
79
|
+
- lib/google/protobuf/descriptor.pb.rb
|
80
|
+
homepage: https://github.com/JNPRAutomate/fluentd-plugin-juniper-telemetry
|
81
|
+
licenses:
|
82
|
+
- Apache 2.0
|
83
|
+
post_install_message:
|
84
|
+
rdoc_options: []
|
85
|
+
require_paths:
|
86
|
+
- lib
|
87
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
88
|
+
none: false
|
89
|
+
requirements:
|
90
|
+
- - ! '>='
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '0'
|
93
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
requirements: []
|
100
|
+
rubyforge_project:
|
101
|
+
rubygems_version: 1.8.23
|
102
|
+
signing_key:
|
103
|
+
specification_version: 3
|
104
|
+
summary: ! 'Input plugin for Fluentd for Juniper devices telemetry data streaming
|
105
|
+
: Jvision / analyticsd etc ..'
|
106
|
+
test_files: []
|