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

lib/snet: expose metrics #3107

Closed
kormat opened this issue Sep 5, 2019 · 1 comment · Fixed by #3257
Closed

lib/snet: expose metrics #3107

kormat opened this issue Sep 5, 2019 · 1 comment · Fixed by #3257
Assignees
Labels
c/observability Metrics, logging, tracing feature New feature or request

Comments

@kormat
Copy link
Contributor

kormat commented Sep 5, 2019

  • Packets received/sent
  • Bytes received/sent
  • DialSCION/ListenSCION/Conn.Close() counters.
  • Packet parsing errors
  • SCMP errors
  • Dispatcher errors/reconnects

Ideally this would be done such that an app doesn't have to initialize the metrics if it doesn't care about any of that.

@kormat kormat added the c/observability Metrics, logging, tracing label Sep 5, 2019
This was referenced Sep 6, 2019
@scrye scrye changed the title snet: export metrics snet: expose metrics Sep 16, 2019
@scrye scrye changed the title snet: expose metrics lib/snet: expose metrics Sep 16, 2019
@scrye
Copy link
Contributor

scrye commented Sep 16, 2019

Renamed similarly to other existing issues.

@scrye scrye self-assigned this Sep 16, 2019
@scrye scrye added feature New feature or request SNET labels Oct 9, 2019
scrye added a commit that referenced this issue Oct 21, 2019
Metrics example:
```
# HELP lib_snet_closes_total Total number of Close calls.
# TYPE lib_snet_closes_total counter
lib_snet_closes_total 0
# HELP lib_snet_dials_total Total number of Dial calls.
# TYPE lib_snet_dials_total counter
lib_snet_dials_total 0
# HELP lib_snet_dispatcher_error_total Total number of dispatcher errors
# TYPE lib_snet_dispatcher_error_total counter
lib_snet_dispatcher_error_total 0
# HELP lib_snet_listens_total Total number of Listen calls.
# TYPE lib_snet_listens_total counter
lib_snet_listens_total 2
# HELP lib_snet_parse_error_total Total number of parse errors
# TYPE lib_snet_parse_error_total counter
lib_snet_parse_error_total 0
# HELP lib_snet_read_total_bytes Total number of bytes read
# TYPE lib_snet_read_total_bytes counter
lib_snet_read_total_bytes 1.163921e+06
# HELP lib_snet_read_total_pkts Total number of packetes read
# TYPE lib_snet_read_total_pkts counter
lib_snet_read_total_pkts 3105
# HELP lib_snet_scmp_error_total Total number of SCMP errors
# TYPE lib_snet_scmp_error_total counter
lib_snet_scmp_error_total 0
# HELP lib_snet_write_total_bytes Total number of bytes written
# TYPE lib_snet_write_total_bytes counter
lib_snet_write_total_bytes 579712
# HELP lib_snet_write_total_pkts Total number of packets written
# TYPE lib_snet_write_total_pkts counter
lib_snet_write_total_pkts 3037
```

Fixes #3107
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/observability Metrics, logging, tracing feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants