aws-kinesis-new-plugin - fix regarding review

This commit is contained in:
Sims24 2019-09-12 11:41:29 +02:00 committed by Colin Gagnaire
parent 76e8e3a810
commit 5a9bef0b04
4 changed files with 36 additions and 36 deletions

View File

@ -31,14 +31,14 @@ my %metrics_mapping = (
'output_unit' => 'ms', 'output_unit' => 'ms',
'perfdata_unit' => 'ms', 'perfdata_unit' => 'ms',
'label' => 'client-latency', 'label' => 'client-latency',
'nlabel' => 'apigateway.client.latency.ms' 'nlabel' => 'apigateway.client.latency.milliseconds'
}, },
'IntegrationLatency' => { 'IntegrationLatency' => {
'output' => 'Integration Latency', 'output' => 'Integration Latency',
'output_unit' => 'ms', 'output_unit' => 'ms',
'perfdata_unit' => 'ms', 'perfdata_unit' => 'ms',
'label' => 'backend-latency', 'label' => 'backend-latency',
'nlabel' => 'apigateway.backend.latency.ms' 'nlabel' => 'apigateway.backend.latency.milliseconds'
}, },
); );

View File

@ -28,18 +28,18 @@ use warnings;
my %metrics_mapping = ( my %metrics_mapping = (
'Count' => { 'Count' => {
'output' => 'Client Requests', 'output' => 'Client Requests',
'label' => 'request-count', 'label' => 'request-client',
'nlabel' => 'requests.count' 'nlabel' => 'apigateway.requests.client.count'
}, },
'4XXError' => { '4XXError' => {
'output' => 'HTTP 4XX Errors', 'output' => 'HTTP 4XX Errors',
'label' => 'httpcode-4xx-errors', 'label' => 'requests-4xx-errors',
'nlabel' => 'requests.httpcode.4xx.count' 'nlabel' => 'apigateway.requests.errors.4xx.count'
}, },
'5XXError' => { '5XXError' => {
'output' => 'HTTP 5XX Errors', 'output' => 'HTTP 5XX Errors',
'label' => 'httpcode-5xx-errors', 'label' => 'requests-5xx-errors',
'nlabel' => 'requests.httpcode.5xx.count' 'nlabel' => 'apigateway.requests.errors.5xx.count'
}, },
); );
@ -191,12 +191,12 @@ Filter metrics (Can be: 'Count', '4XXError', '5XXError')
=item B<--warning-*> =item B<--warning-*>
Thresholds warning Thresholds warning
star substitusion possibilities: request-count, httpcode-4xx-errors, httpcode-5xx-errors star substitusion possibilities: request-client, requests-4xx-errors, requests-5xx-errors
=item B<--critical-*> =item B<--critical-*>
Thresholds critical Thresholds critical
star substitusion possibilities: request-count, httpcode-4xx-errors, httpcode-5xx-errors star substitusion possibilities: request-client, requests-4xx-errors, requests-5xx-errors
=back =back

View File

@ -28,54 +28,54 @@ use warnings;
my %metrics_mapping = ( my %metrics_mapping = (
'GetRecords.IteratorAgeMilliseconds' => { 'GetRecords.IteratorAgeMilliseconds' => {
'output' => 'Get Records Iterator Age', 'output' => 'Get Records Iterator Age',
'label' => 'get-record-iterator-age', 'label' => 'records-get-iteratorage',
'nlabel' => 'kinesis.stream.records.get.iteratorage.ms', 'nlabel' => 'kinesis.stream.records.get.iteratorage.milliseconds',
'perf_unit' => 'ms', 'perf_unit' => 'ms',
'change_bytes' => '0', 'change_bytes' => '0',
'stats' => { 'sum' => 'false' } 'stats' => { 'sum' => 'false' }
}, },
'GetRecords.Bytes' => { 'GetRecords.Bytes' => {
'output' => 'Get Records Bytes', 'output' => 'Get Records Bytes',
'label' => 'get-record-bytes', 'label' => 'records-get-volume',
'nlabel' => 'kinesis.stream.get.records.bytes', 'nlabel' => 'kinesis.stream.records.get.volume.bytes',
'perf_unit' => 'B', 'perf_unit' => 'B',
'change_bytes' => '2', 'change_bytes' => '2',
}, },
'GetRecords.Latency' => { 'GetRecords.Latency' => {
'output' => 'Get Records Latency', 'output' => 'Get Records Latency',
'label' => 'get-record-latency', 'label' => 'records-get-latency',
'nlabel' => 'kinesis.stream.get.records.latency.ms', 'nlabel' => 'kinesis.stream.records.get.latency.milliseconds',
'perf_unit' => 'ms', 'perf_unit' => 'ms',
'change_bytes' => '0', 'change_bytes' => '0',
'stats' => { 'sum' => 'false' } 'stats' => { 'sum' => 'false' }
}, },
'GetRecords.Success' => { 'GetRecords.Success' => {
'output' => 'Get Records Success', 'output' => 'Get Records Success',
'label' => 'get-record-success', 'label' => 'records-get-success',
'nlabel' => 'kinesis.stream.get.records.success.count', 'nlabel' => 'kinesis.stream.records.get.success.count',
'perf_unit' => '', 'perf_unit' => '',
'change_bytes' => '0', 'change_bytes' => '0',
'stats' => { 'average' => 'false' } 'stats' => { 'average' => 'false' }
}, },
'PutRecord.Latency' => { 'PutRecord.Latency' => {
'output' => 'Put Records Latency', 'output' => 'Put Records Latency',
'label' => 'put-record-latency', 'label' => 'records-put-latency',
'nlabel' => 'kinesis.stream.put.records.latency.ms', 'nlabel' => 'kinesis.stream.records.put.latency.milliseconds',
'perf_unit' => 'ms', 'perf_unit' => 'ms',
'change_bytes' => '0', 'change_bytes' => '0',
'stats' => { 'sum' => 'false' } 'stats' => { 'sum' => 'false' }
}, },
'PutRecord.Bytes' => { 'PutRecord.Bytes' => {
'output' => 'Put Records Bytes', 'output' => 'Put Records Bytes',
'label' => 'put-record-bytes', 'label' => 'records-put-volume',
'nlabel' => 'kinesis.stream.put.records.bytes', 'nlabel' => 'kinesis.stream.records.put.volume.bytes',
'perf_unit' => 'B', 'perf_unit' => 'B',
'change_bytes' => '2' 'change_bytes' => '2'
}, },
'PutRecord.Success' => { 'PutRecord.Success' => {
'output' => 'Put Records Success', 'output' => 'Put Records Success',
'label' => 'put-record-success', 'label' => 'records-put-success',
'nlabel' => 'kinesis.stream.put.records.success.count', 'nlabel' => 'kinesis.stream.records.put.success.count',
'perf_unit' => '', 'perf_unit' => '',
'change_bytes' => '0', 'change_bytes' => '0',
'stats' => { 'average' => 'false' } 'stats' => { 'average' => 'false' }
@ -228,14 +228,14 @@ Filter metrics (Can be: 'GetRecords.IteratorAgeMilliseconds', 'GetRecords.Bytes'
=item B<--warning-*> =item B<--warning-*>
Thresholds warning Thresholds warning
can be: 'get-record-iterator-age', 'get-record-bytes', 'get-record-success', 'get-record-latency', can be: 'records-get-iteratorage', 'records-get-volume', 'records-get-latency', 'records-get-success',
'put-record-bytes', 'put-record-success', 'put-record-latency' 'records-put-volume', 'records-put-latency', 'records-get-success',
=item B<--critical-*> =item B<--critical-*>
Thresholds critical Thresholds critical
can be: 'get-record-iterator-age', 'get-record-bytes', 'get-record-success', 'get-record-latency', can be: 'records-get-iteratorage', 'records-get-volume', 'records-get-latency', 'records-get-success',
'put-record-bytes', 'put-record-success', 'put-record-latency' 'records-put-volume', 'records-put-latency', 'records-get-success',
=back =back

View File

@ -28,30 +28,30 @@ use warnings;
my %metrics_mapping = ( my %metrics_mapping = (
'IncomingBytes' => { 'IncomingBytes' => {
'output' => 'Incoming Bytes', 'output' => 'Incoming Bytes',
'label' => 'incoming-bytes', 'label' => 'incoming-volume',
'nlabel' => 'kinesis.stream.incoming.bytes', 'nlabel' => 'kinesis.stream.incoming.volume.bytes',
'perf_unit' => 'B', 'perf_unit' => 'B',
'change_bytes' => '2' 'change_bytes' => '2'
}, },
'IncomingRecords' => { 'IncomingRecords' => {
'output' => 'Incoming Records', 'output' => 'Incoming Records',
'label' => 'incoming-records', 'label' => 'incoming-records',
'nlabel' => 'kinesis.stream.incoming.records', 'nlabel' => 'kinesis.stream.incoming.records.count',
'perf_unit' => '', 'perf_unit' => '',
'change_bytes' => '0', 'change_bytes' => '0',
'stats' => { 'average' => 'false' } 'stats' => { 'average' => 'false' }
}, },
'OutgoingBytes' => { 'OutgoingBytes' => {
'output' => 'Outgoing Bytes', 'output' => 'Outgoing Bytes',
'label' => 'outgoing-bytes', 'label' => 'outgoing-volume',
'nlabel' => 'kinesis.stream.outgoing.bytes', 'nlabel' => 'kinesis.stream.outgoing.volume.bytes',
'perf_unit' => 'B', 'perf_unit' => 'B',
'change_bytes' => '2' 'change_bytes' => '2'
}, },
'OutgoingRecords' => { 'OutgoingRecords' => {
'output' => 'Outgoing Records', 'output' => 'Outgoing Records',
'label' => 'outgoing-records', 'label' => 'outgoing-records',
'nlabel' => 'kinesis.stream.outgoing.records', 'nlabel' => 'kinesis.stream.outgoing.records.count',
'perf_unit' => '', 'perf_unit' => '',
'change_bytes' => '0', 'change_bytes' => '0',
'stats' => { 'average' => 'false' } 'stats' => { 'average' => 'false' }
@ -205,12 +205,12 @@ Filter metrics (Can be: 'IncomingBytes', 'IncomingRecords', 'OutgoingBytes', 'Ou
=item B<--warning-*> =item B<--warning-*>
Thresholds warning Thresholds warning
can be: 'incoming-bytes', 'incoming-records', 'outgoing-bytes', 'outgoing-records'. can be: 'incoming-bytes', 'incoming-records', 'outgoing-volume', 'outgoing-volume'.
=item B<--critical-*> =item B<--critical-*>
Thresholds critical Thresholds critical
can be: 'incoming-bytes', 'incoming-records', 'outgoing-bytes', 'outgoing-records'. can be: 'incoming-bytes', 'incoming-records', 'outgoing-volume', 'outgoing-volume'.
=back =back