OpenTelemetry Bot d680729c09 [chore] Prepare release 0.90.0 (#29543) 1 рік тому
..
internal d152a936c6 [chore] dependabot updates Tue Oct 24 15:25:38 UTC 2023 (#28572) 1 рік тому
testdata b39f83d568 [receiver/sshcheck] Change keyfile -> key_file in e.g. config and docs (#28834) 1 рік тому
Makefile 297a8c12f7 [sshcheckreceiver] New receiver (#14694) 1 рік тому
README.md b39f83d568 [receiver/sshcheck] Change keyfile -> key_file in e.g. config and docs (#28834) 1 рік тому
config.go b39f83d568 [receiver/sshcheck] Change keyfile -> key_file in e.g. config and docs (#28834) 1 рік тому
config_test.go b39f83d568 [receiver/sshcheck] Change keyfile -> key_file in e.g. config and docs (#28834) 1 рік тому
doc.go 5133f4ccd6 [chore] use license shortform (#22052) 1 рік тому
documentation.md 252b3a0c6b [chore] Metadata inconsistencies (#21915) 1 рік тому
factory.go 9161ab2e93 [chore] more linting fixes (#22979) 1 рік тому
factory_test.go 4a0ea8e961 [chore] Improving life cycle tests reporting (#23145) 1 рік тому
go.mod d680729c09 [chore] Prepare release 0.90.0 (#29543) 1 рік тому
go.sum 40b485f08a Update core for v0.90.0 release (#29539) 1 рік тому
metadata.yaml 326d0261f9 [cmd/mdatagen] Rename aggregation to aggregation_temporality for sum metrics (#24808) 1 рік тому
scraper.go 29ea5a964d [cmd/mdatagen] Avoid reusing the same ResourceBuilder instance (#24762) 1 рік тому
scraper_test.go cd92432fd2 [pkg/golden] internal/coreinternal/golden -> pkg/golden (#28636) 1 рік тому

README.md

SSH Check Receiver

Status
Stability alpha: metrics
Distributions contrib, sumo
Issues Open issues Closed issues
Code Owners @nslaughter, @codeboten

This receiver creates stats by connecting to an SSH server which may be an SFTP server.

Prerequisites

If ignore_host_key is not set then host key validation requires the agent either have a known_hosts file at a path specified by setting known_hosts or at default paths indicated by ssh man pages: $HOME/.ssh/known_hosts or /etc/ssh/known_hosts.

Configuration

The following settings are required:

  • endpoint
  • username
  • password or key_file

Either password or key_file must be set. But if both are set then password is treated as the passphrase and the key is assumed to be encrypted.

The following settings are optional:

  • collection_interval (default = 60s): This receiver collects metrics on an interval. Valid time units are ns, us (or µs), ms, s, m, h.
  • known_hosts (default = ssh defaults): The path to the known_hosts file. If this isn't set then default locations are checked at $HOME/.ssh/known_hosts and /etc/ssh/known_hosts.
  • ignore_host_key (default = false): Can override conventional ssh security for use cases like tests where authentication via the known_hosts file isn't required.

Example Configuration

receivers:
  sshcheck:
    endpoint: localhost:2222
    username: otelu
    password: $OTELP
    collection_interval: 60s

The full list of settings exposed for this receiver are documented here with detailed sample configurations here.

Metrics

Details about the metrics produced by this receiver can be found in metadata.yaml