Glad to see this moving forward. Few questions:

1. what happened to the PCP approach we talked about in the past?

2. how would you integrate this to sosreport/foreman-debug? I'm thinking of
storing the statsd data locally, collecting them with foreman-debug, and
then, being able to import them later to the prometheus and other tools. Is
this how this could work? Any other options?

3. does every host/runtime needs it's own statsd service, or there would be
one shared process? Asking bith for multi-host and containers use-case

The proposal of the telemetry api itself seems reasonable, let's discuss
that on an actual PR

-- Ivan

On Tue, 21 Nov 2017 at 13:59, Lukas Zapletal <l...@redhat.com> wrote:

> Thanks for question, this will be completely opt-in via
> /etc/foreman/settings.yaml. You can turn off (default behavior when
> not set), or on via prometheus, statsd or logging implementation (for
> debugging purposes - sends stats to Rails log / production.log).
>
> On Mon, Nov 20, 2017 at 4:31 PM, Bryan Kearney <bryan.kear...@gmail.com>
> wrote:
> > How would folks disable it opt out of sending this data?
> >
> > On Nov 20, 2017 9:46 AM, "Lukas Zapletal" <l...@redhat.com> wrote:
> >>
> >> Hey,
> >>
> >> on the last demo I presented my proposal for telemetry (it is actually
> >> a separate video). I am looking for non-intrusive approach with broad
> >> integration possibilities:
> >>
> >> https://www.youtube.com/watch?v=gCLSI9-4QpE
> >>
> >> This was also showed on our demo last week (the same content):
> >> https://www.youtube.com/watch?v=QHzNIFjMpTM
> >>
> >> I am starting this thread to gather feedback before I open a PR with
> >> this. Currently the code is mostly in Rails initializer and looks like
> >> this:
> >>
> >> # get telemetry singleton instance and setup it
> >> telemetry = Foreman::Telemetry.instance.setup(... some options ...)
> >>
> >> # register measurements
> >> telemetry.add_counter(:http_requests, 'A counter of HTTP requests
> >> made', [:controller, :action])
> >> telemetry.add_histogram(:http_request_total_duration, 'Total
> >> duration', [:controller, :action])
> >> telemetry.add_counter(:activerecord_instances, 'Number of instances of
> >> AR models', [:class])
> >>
> >> # send measurements from Rails instrumentation or from code base
> >> telemetry.increment_counter(:http_requests, 1, :controller =>
> >> controller, :action => action, :status => status)
> >> telemetry.observe_histogram(:http_request_total_duration, duration,
> >> :controller => controller, :action => action)
> >>
> >> The proposed API is a single class (a singleton actually) with three
> >> registering methods and three measure methods. I don't think such a
> >> simple class needs proper separation of concerns, but we can talk
> >> about this in the PR. The registration part could be turned into some
> >> kind of DSL, currently it takes metric name, description and list of
> >> keys which will be part of an instance for those frameworks which do
> >> not support arbitrary amount of key-value pairs.
> >>
> >> If there are no objections, I will add settings and better error
> >> handling and file the PR.
> >>
> >> --
> >> Later,
> >>   Lukas @lzap Zapletal
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "foreman-dev" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> an
> >> email to foreman-dev+unsubscr...@googlegroups.com.
> >> For more options, visit https://groups.google.com/d/optout.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "foreman-dev" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to foreman-dev+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> Later,
>   Lukas @lzap Zapletal
>
> --
> You received this message because you are subscribed to the Google Groups
> "foreman-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to foreman-dev+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to