@@ -4,8 +4,9 @@ The [SignalFx Smart Agent's](https://github.com/signalfx/signalfx-agent/blob/mas
4
4
metric monitors allow real-time insights into how your target services and
5
5
applications are performing. These metric gathering utilities have an
6
6
equivalent counterpart in the OpenTelemetry Collector, the metric receiver.
7
- The [ Smart Agent Receiver] ( ./README.md ) is a wrapper utility that allows the
8
- embedding of Smart Agent monitors within your Collector pipelines.
7
+ The [ Smart Agent Receiver] ( ../internal/receiver/smartagentreceiver/README.md )
8
+ is a wrapper utility that allows the embedding of Smart Agent monitors within
9
+ your Collector pipelines.
9
10
10
11
Based on the relocation of your desired monitor configurations in your Collector
11
12
deployment, the Smart Agent Receiver works in much the same way your Smart Agent
@@ -29,6 +30,8 @@ collectd:
29
30
writeQueueLimitLow : 600000
30
31
31
32
monitors :
33
+ - type : signalfx-forwarder
34
+ listenAddress : 0.0.0.0:9080
32
35
- type : collectd/activemq
33
36
discoveryRule : container_image =~ "activemq" && private_port == 1099
34
37
extraDimensions :
@@ -41,7 +44,10 @@ monitors:
41
44
my_other_dimension : my_other_dimension_value
42
45
` ` `
43
46
44
- Here is an equivalent, recommended Collector configuration utilizing the
47
+ Below is an equivalent, recommended Collector configuration. Notice that the
48
+ ` signalfx-forwarder` monitor's associated `smartagent/signalfx-forwarder` receiver instance
49
+ is part of a `traces` pipeline using the `sapm` exporter. The additional metric
50
+ monitors utilize the
45
51
[Receiver Creator](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/master/receiver/receivercreator/README.md) :
46
52
47
53
` ` ` yaml
@@ -57,20 +63,23 @@ extensions:
57
63
writeQueueLimitLow: 600000
58
64
59
65
receivers:
66
+ smartagent/signalfx-forwarder:
67
+ type: signalfx-forwarder
68
+ listenAddress: 0.0.0.0:9080
60
69
receiver_creator:
61
70
receivers:
62
71
smartagent/activemq:
63
- rule : type. port && pod.name == "activemq" && port == 1099
72
+ rule: type == " port" && pod.name matches "activemq" && port == 1099
64
73
config:
65
74
type: collectd/activemq
66
75
extraDimensions:
67
76
my_dimension: my_dimension_value
68
77
smartagent/apache:
69
- rule : type. port && pod.name == "apache" && port == 80
78
+ rule: type == " port" && pod.name matches "apache" && port == 80
70
79
config:
71
80
type: collectd/apache
72
81
smartagent/postgresql:
73
- rule : type. port && pod.name == "postgresql" && port == 7199
82
+ rule: type == " port" && pod.name matches "postgresql" && port == 7199
74
83
config:
75
84
type: postgresql
76
85
extraDimensions:
@@ -102,6 +111,9 @@ exporters:
102
111
signalfx:
103
112
access_token: "${SIGNALFX_ACCESS_TOKEN}"
104
113
realm: us1
114
+ sapm:
115
+ access_token: "${SIGNALFX_ACCESS_TOKEN}"
116
+ endpoint: https://ingest.us1.signalfx.com/v2/trace
105
117
106
118
service:
107
119
extensions:
@@ -115,4 +127,11 @@ service:
115
127
- resourcedetection
116
128
exporters:
117
129
- signalfx
130
+ traces:
131
+ receivers:
132
+ - smartagent/signalfx-forwarder
133
+ processors:
134
+ - resourcedetection
135
+ exporters:
136
+ - sapm
118
137
` ` `
0 commit comments