Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New component: SSH Receiver #14312

Closed
2 tasks
nslaughter opened this issue Sep 19, 2022 · 4 comments · Fixed by #14694
Closed
2 tasks

New component: SSH Receiver #14312

nslaughter opened this issue Sep 19, 2022 · 4 comments · Fixed by #14694
Labels
Accepted Component New component has been sponsored Stale

Comments

@nslaughter
Copy link
Contributor

nslaughter commented Sep 19, 2022

The purpose and use-cases of the new component

Purpose: To monitor the availability and performance of SSH endpoints.
Use case: Methods of monitoring SSH host availability can either use the programs on the host or run as clients. This proposal is for monitoring as a client which can provide less information, but it doesn't require ownership of the host or any additional permissions. It performs simple checks by connecting to the host to validate it's available. Additionally, a common use of SSH is for file transfer over SFTP, which can be checked in the same way.

Example configuration for the component

receivers:
  ssh:
    collection_interval: 60s     # default: 60s
    endpoint: eg.host.str:2222   # required - port defaults to 22 if not included
    user: otelu                  # required
    password: otelp              # required unless key_file is provided
    key_type: ECDSA              # default: RSA (enum: RSA|ECDSA|EDDSA|Ed25519)
    key_file: /path/to/key_id    # required unless password is provided
    sftp: true                   # default: false

Telemetry data types supported

Gauges
ssh_availability: 1/0 (up/down)
ssh_connection_time: (ms)

sftp_availability: 1/0 (up/down)
sftp_connection_time: (ms)

Is this a vendor-specific component?

  • This is a vendor-specific component
  • If this is a vendor-specific component, I am proposing to contribute this as a representative of the vendor.

Sponsor (optional)

@codeboten

Additional context

No response

@nslaughter nslaughter added the needs triage New item requiring triage label Sep 19, 2022
@codeboten
Copy link
Contributor

@nslaughter thanks for proposing the component, i'm happy to sponsor it.

Instead of a separate host/port configuration, it would be more consistent w/ other receivers to use endpoint to include both host and port.

How does the test for sftp work? Does it require a file transfer to confirm it works?

@codeboten codeboten added Accepted Component New component has been sponsored and removed needs triage New item requiring triage labels Sep 20, 2022
@nslaughter
Copy link
Contributor Author

Thanks, @codeboten.

  1. I'll make the change to reference endpoint.
  2. For the sftp check (beyond SSH)... I have planned to use pwd. I believe that either pwd or ls (aka dir) are appropriate for testing SFTP response as they're read only, but use remote file system access. If info only commands work then other candidates would be help and version.

@nslaughter
Copy link
Contributor Author

The goals and capabilities have remained the same. However, the implementation changed (a) to fit the networking patterns of the collector and (b) provide metrics in a way more fit with latest views of maintainers.

@github-actions
Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Component New component has been sponsored Stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants