Skip to content

Add Prometheus metrics for NX-API client#446

Open
felix-kaestner wants to merge 1 commit into
refactor/gnmiextfrom
nxapi/metrics
Open

Add Prometheus metrics for NX-API client#446
felix-kaestner wants to merge 1 commit into
refactor/gnmiextfrom
nxapi/metrics

Conversation

@felix-kaestner

Copy link
Copy Markdown
Contributor

Register two metrics with controller-runtime's metrics registry:

  • nxapi_rpc_duration_seconds: histogram of HTTP round-trip latency with target and status labels
  • nxapi_rpc_commands_total: per-command counter with target, command, and status labels

Add WithTarget option to associate a device address with metrics for correlating slow-responding devices.

Comment thread internal/transport/nxapi/nxapi.go Outdated
Comment thread internal/transport/nxapi/nxapi.go Outdated
Register two metrics with controller-runtime's metrics registry:
- nxapi_rpc_duration_seconds: histogram of HTTP round-trip latency
  with target and status labels
- nxapi_rpc_commands_total: per-command counter with target, command,
  and status labels

Add WithTarget option to associate a device address with metrics
for correlating slow-responding devices.

Signed-off-by: Felix Kästner <felix.kaestner@sap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants