weaveworks / scope

Monitoring, visualisation & management for Docker & Kubernetes

Home Page:https://www.weave.works/oss/scope/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scope probe should set the user-agent string

bboreham opened this issue · comments

Right now it shows up in access logs as "Go-http-client/1.1", which is very dull.

We could copy Prometheus, which sets it to something like "Prometheus/2.12.0".

Hi @bboreham I would like to try this. Can you guide me how to get started.

You are welcome, @harshshekhar15 !

There is a brief outline how to build and run in the file CONTRIBUTING.

You should research how to set the user-agent in Go, and see where that could fit into the probe code.

Ideally also write a test, though I won't insist on it for this particular change.

Thanks for the heads-up @bboreham.

Hi @bboreham,
I would like to try this as well. This will also be my first PR if all goes well. Can you guide me on how to get started?

There's no point both of you doing the same task.
But maybe @harshshekhar15 gave up?

How far did you get in the instructions I already gave?

I just wanted to clarify certain things. I have to first fork this repo, then after making the change, I am supposed to make a pr, which is basically me telling you that "I have made this change. Please review and add to master". And then you add it. Right?

Hi @bboreham and @DarthSett. @bboreham no I didn't gave up, actually was caught up with some work and didn't got time to look into the issue. By the way @DarthSett are you ready with the changes, if yes then please go ahead and raise a PR, else I will try to raise a PR once I'm done.

@bboreham What do you want the header value to be? I can set it to something like "Scope/1.11.6" for now.

@bboreham @harshshekhar15
I have listed a PR for this issue.

Thanks! There is already a version string set at build time here via the -X flag.

Thank you all