Skip to content

Commit

Permalink
[receiver/tcpcheck] Fit Scraper open-telemetry#34458
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenoCC-Peng authored and chengchuanpeng committed Jan 26, 2025
1 parent 41b7b69 commit aa57e4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions receiver/tcpcheckreceiver/scraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func (s *scraper) scrape(_ context.Context) (pmetric.Metrics, error) {
var mux sync.Mutex

for _, tcpConfig := range s.cfg.Targets {
// endpoint and dialer
go s.scrapeEndpoint(tcpConfig, &wg, &mux)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ resourceMetrics:
dataPoints:
- asInt: "36"
attributes:
- key: tcp.endpoint
- key: tcpcheck.endpoint
value:
stringValue: 127.0.0.1:8080
startTimeUnixNano: "1000000"
timeUnixNano: "2000000"
name: tcpcheck.duration
unit: ns
unit: ms
- description: 1 if the TCP client successfully connected, otherwise 0.
name: tcpcheck.status
gauge:
dataPoints:
- asInt: "1"
attributes:
- key: tcp.endpoint
- key: tcpcheck.endpoint
value:
stringValue: 127.0.0.1:8080
startTimeUnixNano: "1000000"
timeUnixNano: "2000000"
unit: "1"
scope:
name: otelcol/tcpcheckreceiver
name: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/tcpcheckreceiver
version: latest

0 comments on commit aa57e4d

Please sign in to comment.