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

Export Prometheus flow metrics with UE IP labels #375

Merged
merged 14 commits into from Jan 20, 2022

Conversation

pudelkoM
Copy link
Member

@pudelkoM pudelkoM commented Dec 7, 2021

No description provided.

@ccascone ccascone self-requested a review December 7, 2021 02:05
pfcpiface/bess.go Outdated Show resolved Hide resolved
Comment on lines 101 to 105
ch <- uc.sessionLatency
ch <- uc.sessionJitter
ch <- uc.sessionTxPackets
ch <- uc.sessionDroppedPackets
ch <- uc.sessionTxBytes
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ideally we should have separate interface for these, like we have one for PFCP layer metrics.

https://github.com/omec-project/upf-epc/blob/1ae479b109b9dfc62e341f0233af20d40e2c5d74/pfcpiface/metrics/interface.go#L48-L51

Overall split could be -

  1. PFCP protocol metrics - interface - how many messages, sessions etc
  2. PFCP fastpath metrics - interface - fastpath performance of the session/pdr, can benefit from more PFCP context
  3. Fastpath backend specific metrics - need not be interface, registered/exported in their own files - fastpath wide latency. jitter, packets, bytes, dropped, memory util etc

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to implement that approach by creating a new collector. Seems to fit much better, no duplicate state needed.

@github-actions
Copy link

github-actions bot commented Jan 7, 2022

This pull request has been stale for 30 days and will be closed in 5 days. Comment to keep it open.

@pudelkoM pudelkoM force-pushed the pfcp-prometheus-export-ue-ip branch 2 times, most recently from ee04d04 to d031507 Compare January 13, 2022 21:58
@pudelkoM pudelkoM marked this pull request as ready for review January 13, 2022 22:01
osinstom
osinstom previously approved these changes Jan 14, 2022
Copy link
Contributor

@osinstom osinstom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After discussion offline, I'm ok to merge it in this shape. We still would need to revise metrics APIs in future.

@pudelkoM pudelkoM merged commit d62d779 into master Jan 20, 2022
@pudelkoM pudelkoM deleted the pfcp-prometheus-export-ue-ip branch January 20, 2022 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants