Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ nodes:
- "METRICS"
resource:
action: "'CREATE'"
condition: "'service.namespace' in resource.attributes"
condition: "'service.namespace' in resource.attributes && resource.attributes['service.namespace'] != ''"
vars:
- name: "namespace"
value: "resource.attributes['service.namespace']"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ nodes:
condition: "'service.instance.id' in resource.attributes"
vars:
- name: "namespace"
value: "resource.attributes['service.namespace']"
value: >-
'service.namespace' in resource.attributes ?
resource.attributes['service.namespace'] :
''
- name: "service"
value: "resource.attributes['service.name']"
- name: "version"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ nodes:
vars:
- name: "namespace"
value: >-
resource.attributes['service.namespace'] != '' ?
'service.namespace' in resource.attributes ?
resource.attributes['service.namespace'] :
'default'
''
- name: "service"
value: "resource.attributes['service.name']"
- name: "version"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ nodes:
unit: s
threshold: 5
titleTemplate: Span duration
urnTemplate: "urn:opentelemetry:namespace/${service_namespace}:service/${service_name}:serviceInstance/${service_instance_id}"
urnTemplate: "urn:opentelemetry:namespace/${'service_namespace' in labels ? labels.service_namespace : ''}:service/${service_name}:serviceInstance/${service_instance_id}"
description: |
Monitors the duration of the server and consumer spans. When the 95th percentile of the duration is greater than the threshold (default 5s) the monitor has a Deviating state.
function: urn:stackpack:common:monitor-function:threshold
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ nodes:
unit: percent
threshold: 5
titleTemplate: Span error ratio
urnTemplate: "urn:opentelemetry:namespace/${service_namespace}:service/${service_name}:serviceInstance/${service_instance_id}"
urnTemplate: "urn:opentelemetry:namespace/${'service_namespace' in labels ? labels.service_namespace : ''}:service/${service_name}:serviceInstance/${service_instance_id}"
description: |
Percentage of server and consumer spans that are in an error state for the service instance.
function: urn:stackpack:common:monitor-function:threshold
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ nodes:
unit: s
threshold: 5
titleTemplate: Span duration
urnTemplate: "urn:opentelemetry:namespace/${service_namespace}:service/${service_name}"
urnTemplate: "urn:opentelemetry:namespace/${'service_namespace' in labels ? labels.service_namespace : ''}:service/${service_name}"
description: |
Monitors the duration of the server and consumer spans. When the 95th percentile of the duration is greater than the threshold (default 5s) the monitor has a Deviating state.
function: urn:stackpack:common:monitor-function:threshold
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ nodes:
unit: percent
threshold: 5
titleTemplate: Span error ratio
urnTemplate: "urn:opentelemetry:namespace/${service_namespace}:service/${service_name}"
urnTemplate: "urn:opentelemetry:namespace/${'service_namespace' in labels ? labels.service_namespace : ''}:service/${service_name}"
description: |
Percentage of server and consumer spans that are in an error state for the service.
function: urn:stackpack:common:monitor-function:threshold
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,28 @@ nodes:
condition: >-
'client' in datapoint.attributes &&
'server' in datapoint.attributes &&
'client_service.namespace' in datapoint.attributes &&
'server_service.namespace' in datapoint.attributes &&
'connection_type' in datapoint.attributes &&
datapoint.attributes['connection_type'] == 'messaging_system' &&
'client_peer.service' in datapoint.attributes
vars:
- name: "sourceId"
- name: "clientServiceNamespace"
value: "'client_service.namespace' in datapoint.attributes ? datapoint.attributes['client_service.namespace'] : ''"
- name: "serverServiceNamespace"
value: "'server_service.namespace' in datapoint.attributes ? datapoint.attributes['server_service.namespace'] : ''"
- name: "server"
value: "datapoint.attributes['server']"
- name: "serverServiceInstanceId"
value: >-
'server_service.instance.id' in datapoint.attributes ?
"urn:opentelemetry:namespace/" + datapoint.attributes['server_service.namespace'] + ":service/" + datapoint.attributes['server'] + ":serviceInstance/" + datapoint.attributes['server_service.instance.id'] :
"urn:opentelemetry:namespace/" + datapoint.attributes['server_service.namespace'] + ":service/" + datapoint.attributes['server'] + ":serviceInstance/" + datapoint.attributes['server']
- name: "targetId"
value: >-
'urn:opentelemetry:namespace/' + datapoint.attributes['client_service.namespace'] + ':service/' + datapoint.attributes['client_peer.service']
datapoint.attributes['server_service.instance.id'] :
datapoint.attributes['server']
- name: "peerService"
value: "datapoint.attributes['client_peer.service']"
output:
sourceId: "vars.sourceId"
targetId: "vars.targetId"
sourceId: >-
'urn:opentelemetry:namespace/' + vars.serverServiceNamespace + ':service/' + vars.server + ':serviceInstance/' + vars.serverServiceInstanceId
targetId: >-
'urn:opentelemetry:namespace/' + vars.clientServiceNamespace + ':service/' + vars.peerService
typeName: "'asynchronous'"
dependencyType: "'CONNECTION'"
expireAfter: 900000
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,33 @@ nodes:
condition: >-
'client' in datapoint.attributes &&
'server' in datapoint.attributes &&
'client_service.namespace' in datapoint.attributes &&
'server_service.namespace' in datapoint.attributes &&
'connection_type' in datapoint.attributes &&
datapoint.attributes['connection_type'] == 'messaging_system' &&
!('client_peer.service' in datapoint.attributes)
vars:
- name: "sourceId"
- name: "clientServiceNamespace"
value: "'client_service.namespace' in datapoint.attributes ? datapoint.attributes['client_service.namespace'] : ''"
- name: "serverServiceNamespace"
value: "'server_service.namespace' in datapoint.attributes ? datapoint.attributes['server_service.namespace'] : ''"
- name: "client"
value: "datapoint.attributes['client']"
- name: "server"
value: "datapoint.attributes['server']"
- name: "clientServiceInstanceId"
value: >-
'client_service.instance.id' in datapoint.attributes ?
"urn:opentelemetry:namespace/" + datapoint.attributes['client_service.namespace'] + ":service/" + datapoint.attributes['client'] + ":serviceInstance/" + datapoint.attributes['client_service.instance.id'] :
"urn:opentelemetry:namespace/" + datapoint.attributes['client_service.namespace'] + ":service/" + datapoint.attributes['client'] + ":serviceInstance/" + datapoint.attributes['client']
- name: "targetId"
datapoint.attributes['client_service.instance.id'] :
datapoint.attributes['client']
- name: "serverServiceInstanceId"
value: >-
'server_service.instance.id' in datapoint.attributes ?
"urn:opentelemetry:namespace/" + datapoint.attributes['server_service.namespace'] + ":service/" + datapoint.attributes['server'] + ":serviceInstance/" + datapoint.attributes['server_service.instance.id'] :
"urn:opentelemetry:namespace/" + datapoint.attributes['server_service.namespace'] + ":service/" + datapoint.attributes['server'] + ":serviceInstance/" + datapoint.attributes['server']
datapoint.attributes['server_service.instance.id'] :
datapoint.attributes['server']
output:
sourceId: "vars.sourceId"
targetId: "vars.targetId"
sourceId: >-
'urn:opentelemetry:namespace/' + vars.clientServiceNamespace + ':service/' + vars.client + ':serviceInstance/' + vars.clientServiceInstanceId
targetId: >-
'urn:opentelemetry:namespace/' + vars.serverServiceNamespace + ':service/' + vars.server + ':serviceInstance/' + vars.serverServiceInstanceId
typeName: "'asynchronous'"
dependencyType: "'CONNECTION'"
expireAfter: 900000
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,26 @@ nodes:
condition: >-
'client' in datapoint.attributes &&
'server' in datapoint.attributes &&
'client_service.namespace' in datapoint.attributes &&
'connection_type' in datapoint.attributes &&
datapoint.attributes['connection_type'] == 'messaging_system' &&
'client_peer.service' in datapoint.attributes
vars:
- name: "sourceId"
- name: "clientServiceNamespace"
value: "'client_service.namespace' in datapoint.attributes ? datapoint.attributes['client_service.namespace'] : ''"
- name: "client"
value: "datapoint.attributes['client']"
- name: "clientServiceInstanceId"
value: >-
'client_service.instance.id' in datapoint.attributes ?
"urn:opentelemetry:namespace/" + datapoint.attributes['client_service.namespace'] + ":service/" + datapoint.attributes['client'] + ":serviceInstance/" + datapoint.attributes['client_service.instance.id'] :
"urn:opentelemetry:namespace/" + datapoint.attributes['client_service.namespace'] + ":service/" + datapoint.attributes['client'] + ":serviceInstance/" + datapoint.attributes['client']
- name: "targetId"
value: >-
'urn:opentelemetry:namespace/' + datapoint.attributes['client_service.namespace'] + ':service/' + datapoint.attributes['client_peer.service']
datapoint.attributes['client_service.instance.id'] :
datapoint.attributes['client']
- name: "peerService"
value: "datapoint.attributes['client_peer.service']"
output:
sourceId: "vars.sourceId"
targetId: "vars.targetId"
sourceId: >-
'urn:opentelemetry:namespace/' + vars.clientServiceNamespace + ':service/' + vars.client + ':serviceInstance/' + vars.clientServiceInstanceId
targetId: >-
'urn:opentelemetry:namespace/' + vars.clientServiceNamespace + ':service/' + vars.peerService
typeName: "'asynchronous'"
dependencyType: "'CONNECTION'"
expireAfter: 900000
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ nodes:
value: "resource.attributes['aws.ecs.task.id']"
- name: "namespace"
value: >-
'service.namespace' in resource.attributes &&
resource.attributes['service.namespace'] != '' ?
'service.namespace' in resource.attributes ?
resource.attributes['service.namespace'] :
'default'
''
- name: "service"
value: "resource.attributes['service.name']"
- name: "instanceId"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ nodes:
value: "resource.attributes['faas.id']"
- name: "namespace"
value: >-
'service.namespace' in resource.attributes &&
resource.attributes['service.namespace'] != '' ?
'service.namespace' in resource.attributes ?
resource.attributes['service.namespace'] :
'default'
''
- name: "service"
value: "resource.attributes['service.name']"
- name: "instanceId"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ nodes:
value: "resource.attributes['host.id']"
- name: "namespace"
value: >-
'service.namespace' in resource.attributes &&
resource.attributes['service.namespace'] != '' ?
'service.namespace' in resource.attributes ?
resource.attributes['service.namespace'] :
'default'
''
- name: "service"
value: "resource.attributes['service.name']"
- name: "instanceId"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ nodes:
value: "resource.attributes['k8s.pod.name']"
- name: "serviceNamespace"
value: >-
'service.namespace' in resource.attributes &&
resource.attributes['service.namespace'] != '' ?
'service.namespace' in resource.attributes ?
resource.attributes['service.namespace'] :
'default'
''
- name: "service"
value: >-
'service.name' in resource.attributes ?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ nodes:
vars:
- name: "namespace"
value: >-
'service.namespace' in resource.attributes &&
resource.attributes['service.namespace'] != '' ?
'service.namespace' in resource.attributes ?
resource.attributes['service.namespace'] :
'default'
''
- name: "service"
value: "resource.attributes['service.name']"
- name: "instanceId"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@ nodes:
condition: >-
'client' in datapoint.attributes &&
'server' in datapoint.attributes &&
'client_service.namespace' in datapoint.attributes &&
'server_service.namespace' in datapoint.attributes &&
'connection_type' in datapoint.attributes &&
datapoint.attributes['connection_type'] == ''
vars:
- name: "clientServiceNamespace"
value: "datapoint.attributes['client_service.namespace']"
value: "'client_service.namespace' in datapoint.attributes ? datapoint.attributes['client_service.namespace'] : ''"
- name: "serverServiceNamespace"
value: "datapoint.attributes['server_service.namespace']"
value: "'server_service.namespace' in datapoint.attributes ? datapoint.attributes['server_service.namespace'] : ''"
- name: "client"
value: "datapoint.attributes['client']"
- name: "server"
Expand Down
2 changes: 1 addition & 1 deletion stackpacks/open-telemetry/stackpack.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "open-telemetry"
version: "0.1.5"
version: "0.1.6"
schemaVersion: "2.0"
displayName: "Open Telemetry"
categories: [ "Open Telemetry" ]
Expand Down
Loading