> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/cdf/latest/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/cdf/latest/observability/dashboard.md).

# Grafana dashboard

Grafana dashboard for Charging Data Function (CDF) helps you visualize and analyze data
from [metrics](https://docs.cennso.com/components/cdf/latest/observability/metrics.md) that CDF exposes.
By default, the CDF dashboard is pre-configured with the following sections:

- Network traffic
- CDF resources
- CDF metrics
- Nchf API metrics

## Monitoring SMF connectivity

To verify that the Session Management Function (SMF) is properly connected and sending charging data:

- **For Diameter Rf interface**: Monitor the [Diameter metrics](https://github.com/travelping/prometheus_diameter_collector) and **ercdf_ctf_peers** gauge to confirm peer connections. Check **ercdf_cdr_added_total** to verify ACR records are arriving.
- **For Nchf interface**: Monitor **ercdf_nchf_request_duration_milliseconds** histogram and **ercdf_sessions_total** gauge to track HTTP/2-based charging events.

For descriptions of all available metrics, see the [metrics reference](https://docs.cennso.com/components/cdf/latest/observability/metrics.md).

## Network traffic

This section provides diagrams that show the network communication involving CDF. By
analyzing these diagrams, you can:

- Verify whether the CDF is operating under typical conditions. If no packets are incoming
  or outgoing during regular operations, it may indicate an issue that requires further
  investigation.
- Identify usage patterns based on the day of the week and time of day.

This section contains two diagrams:

- CDF Receiver Rf - shows the rate of Diameter packets handled by the CDF
  receiver from connected APNs
- CDF Sender network packets - shows the rate of network packets sent by the CDF
  sender to connected CGFs

![Network traffic](https://docs.cennso.com/api/assets/components/cdf/latest/assets/dashboards/CDF_dashboard_network_traffic.png)

## CDF resources

This section contains diagrams showing the RAM and CPU resource usage of CDF Receiver and Sender. Under normal operations, these values should remain within acceptable limits. If resource usage becomes too high, it may indicate that CDF is overloaded and unable to operate efficiently.

![CDF resources](https://docs.cennso.com/api/assets/components/cdf/latest/assets/dashboards/CDF_dashboard_resources.png)

## CDF metrics

This section provides additional information about CDF internals:

- CDRs received - shows the rate of CDRs added to the queue between CDF Receiver and Sender. This corresponds to the charging update and charging terminate events handled by CDF Receiver.
- CDRs sent to CGF - shows the rate of CDRs forwarded to CGFs by CDF Sender.
- GTP echo - shows the rate of GTP echo packets sent to CGFs by CDF Sender. A constant rate indicates that the connection is active.
- CDR send error - shows the rate of errors encountered while sending CDRs to CGFs. This value should remain at zero during regular operations.

![CDF metrics](https://docs.cennso.com/api/assets/components/cdf/latest/assets/dashboards/CDF_dashboard_metrics.png)

## Nchf API metrics

> **NOTE:** The Nchf API is an **alpha** feature and should not be used in production.

This section provides information about Nchf API usage and session state.

- Nchf request histogram by action - shows the number of requests handled within
  time buckets. Use the `nchf_action` variable at the top of the dashboard to
  filter by request type.
- Mean request handling duration - shows the mean handling time per action
  (`create`, `update`, or `release`).
- Nchf SBI requests - shows the rate of requests per action.
- Session count - shows the number of sessions created but not yet released by
  this CDF Receiver instance.

![Nchf API metrics](https://docs.cennso.com/api/assets/components/cdf/latest/assets/dashboards/CDF_dashboard_nchf.png)
