-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Adding CloudEventSource metrics in Prometheus & OpenTelemetry #5259
Adding CloudEventSource metrics in Prometheus & OpenTelemetry #5259
Conversation
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
Thank you for your contribution! 🙏 We will review your PR as soon as possible. While you are waiting, make sure to:
Learn more about: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wonko, you have been working on metric naming refactor to follow best practices, could you take a look to these new metrics please?
...tial/opentelemetry_metrics_cloudevent_source/opentelemetry_metrics_cloudevent_source_test.go
Outdated
Show resolved
Hide resolved
On naming things: Prometheus:
Otel:
On the help texts: The texts in the comments are actually better than whatever is put in the help/descriptions. Compare to as an example. I'd suggest to try and rephrase the descriptions to be more comprehensive of what is being measured, and what the labels indicate. Also, more general, I would suggest to wrap I have no insight in the inner workings, probably the queue-depth might also be a state on the "messages". If the metric actually involves a single message being either queue, sent or failed, it makes sense to wrap all this in a single metric. I don't know how static/variable the name of the queue and the sink are. If they are highly distinctive (many different names over time), they might give some cardinality explosion on the metrics - hard to judge myself however) I would drop the fake metric which exposes the name of the sink and the "active/non-active" state. This has no value as a metric, if you want to track the enabling/disabling of these sinks, this should be done through logging. If you want to graph the existance of a queue, you might want to get the label names of any queue which has emitted a message in the last X time. Btw, this is all very much my personal preferences; @JorTurFer might want to indicate what is nice to have, or what is required in your PR. |
Really interesting feedback @wonko |
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
I am OK with the suggestions, but we should document the requirements as part of the refactoring so that contributors know what to expect. @wonko Are you opening in opening a proposal PR? |
is there already a document which has (partial) info on these topics? |
I would a section somewhere around here https://github.com/kedacore/keda/blob/main/CONTRIBUTING.md#contributing-webhooks Thanks a lot, that's really valuable. |
See #5270 |
Signed-off-by: SpiritZhou <[email protected]>
/run-e2e |
Signed-off-by: SpiritZhou <[email protected]>
/run-e2e |
I saw the e2e failure is about azure-pipeline-test. Do you have any idea about it? @JorTurFer |
/run-e2e sequential |
@SpiritZhou do we have doc PR for this? |
Signed-off-by: SpiritZhou <[email protected]>
Docs updated. |
/run-e2e sequential |
…re#5259) Signed-off-by: SpiritZhou <[email protected]> Signed-off-by: Siva Guruvareddiar <[email protected]>
…re#5259) Signed-off-by: SpiritZhou <[email protected]> Signed-off-by: anton.lysina <[email protected]>
Adding CloudEventSource metrics in Prometheus & OpenTelemetry:
keda_event_emitted_error_totals - Provides an indication of all the errors related to pushing events, per event sink
keda_event_emitted_totals - Provides an indication of all the events that have been emitted, per event sink
keda_event_sinks_totals - Provides an indication of all the event sinks created, per event sink type, per type (namespace/cluster)
keda_event_queue_status - Provides an indication of how many events are droped or still queue
Checklist
Fixes #3531