Skip to content

[FEATURE] Prometheus metric endpoint #186

Closed

Description

@AlexsJones

Requirements

In order to capture data we should add a prometheus metrics endpoint.

Initial proposal:

flagd_total_request_count
flagd_request_bucket
flagd_request_per_minute
flagd_resolve_boolean_value_count
flagd_resolve_string_value_count
flagd_resolve_int_value_count
flagd_resolve_object_value_count

Activity

  1. added
    enhancement
    Needs Triage
    on Oct 4, 2022
  2. self-assigned this
    on Oct 4, 2022
  3. toddbaert commented on Oct 4, 2022

    @toddbaert
    Member

    I like this idea.

    Somewhat related: I'd also like to add OpenTelemetry spans. Do you think it's worth creating a new issue for that? It would allow use to get timing data for various aspects of evaluation (parsing, evaluation, etc). I can create one if you think it's a good idea

  4. AlexsJones commented on Oct 4, 2022

    @AlexsJones
    MemberAuthor

    I like this idea.

    Somewhat related: I'd also like to add OpenTelemetry spans. Do you think it's worth creating a new issue for that? It would allow use to get timing data for various aspects of evaluation (parsing, evaluation, etc). I can create one if you think it's a good idea

    I would say a new issue, it's a different kind of implementation.
    Thing about spans are you need to send them somewhere, otherwise they are just firing into nothing.

  5. beeme1mr commented on Oct 4, 2022

    @beeme1mr
    Member

    It may be worth considering OTel metrics. It looks like the metric support is still alpha though.

    https://github.com/open-telemetry/opentelemetry-go

    The push model of OTel may work better when FlagD is running as a sidecar.

  6. AlexsJones commented on Oct 4, 2022

    @AlexsJones
    MemberAuthor

    I wouldn't want to use a push model for flagD, I would caution that as we're adding dependencies and requirements.
    A Prometheus scrappable endpoint feels like a light weight enough implementation to be useful without mandating additional infrastructure.

  7. AlexsJones commented on Oct 5, 2022

    @AlexsJones
    MemberAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Needs Triageenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions