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

POC for integration telemetry into SUSEConnect #262

Closed
wants to merge 1 commit into from

Conversation

mssola
Copy link
Contributor

@mssola mssola commented Aug 5, 2024

DO NOT MERGE THIS!

How to test this

  1. Download both https://github.com/SUSE/telemetry and https://github.com/SUSE/telemetry-server (yes, you need both).
  2. You can deploy the server in a variety of ways. I've just gone the bare-metal route:
  • cd telemetry-server/server/telemetry-server
  • mkdir -p /tmp/telemetry/{client,server} /tmp/susetelemetry
  • go run . --config ../../testdata/config/localServer.yaml
  1. On another terminal:
  • cd telemetry (NOTE: this is the client repo)
  • cp examples/config/telemetry.yaml /tmp/susetelemetry/config.yaml

And now you can go on with SUSEConnect the usual way. I've done it through a container. Hence, from the source code of suseconnect-ng, go to this branch and:

$ docker run --network=host --rm --privileged -ti -v $(pwd):/connect -v /tmp/susetelemetry:/tmp/susetelemetry  registry.suse.com/bci/golang:1.21-openssl

From there go to /connect, build the code with make build and do something like ./out/suseconnect -r <regcode>. You will see messages of telemetry data being sent.

@mssola mssola self-assigned this Aug 5, 2024
@mssola mssola added the wip Work in progress label Aug 5, 2024
@rtamalin
Copy link
Collaborator

rtamalin commented Aug 5, 2024

Note that if you have docker installed you can use make docker-start from the top-level directory of telemetry-server to start a local server, and make docker-stop to stop it.
Similarly if you have a viable docker compose framework locally, you can run make compose-start to start a telemetry-server + postgres based deployment, and correspondingly make compose-stop to stop it.
Work is on-going to provide equivalent kubernetes deployment (defaulting to local k3s) integration, if that is of interest.
See the SUSE/telemetry-server/README.md for more details.

@mssola mssola force-pushed the telemetry-client branch 2 times, most recently from 28f29ca to 4cf8975 Compare August 5, 2024 13:40
DO NOT MERGE THIS!

Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
@mssola
Copy link
Contributor Author

mssola commented Aug 8, 2024

@mssola mssola closed this Aug 27, 2024
@mssola mssola deleted the telemetry-client branch August 27, 2024 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wip Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants