> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/dpr/1.2/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/dpr/1.2/releases/1.1.0.md).

# Diameter Proxy 1.1.0

In this release of Diameter Proxy (DPR), we provide the following features and bugfixes:

- Deprecation of the `ping-exporter` and `vxlan` configuration options
- Rootless `diameter_proxy` and `endpoints_watcher` containers
- Ability to specify configuration options for the underlying BEAM virtual machine
- Removed unused metrics
- `Round Trip Time` metrics

## Features

### Deprecation of the `ping-exporter` and `vxlan` configuration options

>**CAUTION:** The `ping-exporter` and `vxlan` configuration options are deprecated and will be removed in the next `DPR 1.2.0` release. 

Both `ping-exporter` and `vxlan` containers are outdated and not maintained anymore. 
The recommended way to communicate with Diameter Proxy and Diameter Agents, which Diameter Proxy communicates with, is the Kubernetes network. 
The Diameter Proxy chart does not provide facilities to communicate with Diameter Agents outside of the Kubernetes cluster. 
Therefore, in future deployments, replace `ping-exporter` with [Network Performance Probe](https://docs.cennso.com/docs/components/npp/3.0.0) (NPP) or
external tools that provide such a possibility.

### Rootless `diameter_proxy` and `endpoints_watcher` containers

Since the Diameter Proxy 1.1.0 release, `diameter_proxy` and `endpoints_watcher` are rootless containers.
Both containers are launched by the `runner` user with UID and GID `1000`.

If you need to do something with the `root` permissions, enable the `debug` sidecar container
using the following configuration options:

```
debug:
  enabled: true
```

### Ability to specify configuration options for the underlying BEAM virtual machine

Diameter Proxy in version `1.1.0` allows you to specify configuration options for the
underlying BEAM virtual machine:

```
diameter_proxy_erl_options: ""
```

To learn more about the available configuration options, read the [official Erlang documentation](https://www.erlang.org/doc/man/erl.html#flags).

### Removed unused metrics

The previous versions of Diameter Proxy provided metrics for the underlying BEAM virtual machine. These metrics were not used anywhere
and were not represented on the Grafana dashboard. Since the `1.1.0` release, these metrics are disabled.

### `Round Trip Time` metrics

Diameter Proxy in version `1.1.0` introduces a new `diameter_proxy_request_rtt_milliseconds_bucket` metric. The new metric tracks the
round trip time (in milliseconds) of requests forwarded by Diameter Proxy. The metric is represented by the [Prometheus histogram](https://prometheus.io/docs/practices/histograms/) 
and has two labels:

- `origin_host` - the `Origin-Host` of the peer where Diameter Proxy forwards requests
- `destination_realm` - the `Origin-Realm` of the peer where Diameter Proxy forwards requests

You can configure the histogram buckets with the new configuration option:

```
diameter_proxy:
  metrics:
    rtt_histogram_buckets:
      - 5
      - 25
      - 50
      - 100
      - 250
      - 1000
```

The output example:

```
# HELP diameter_proxy_request_rtt_milliseconds Round trip time for proxied diameter requests
diameter_proxy_request_rtt_milliseconds_bucket{origin_host="example.com",destination_realm="realm",le="5"} 66659739
diameter_proxy_request_rtt_milliseconds_bucket{origin_host="example.com",destination_realm="realm",le="25"} 122056251
diameter_proxy_request_rtt_milliseconds_bucket{origin_host="example.com",destination_realm="realm",le="50"} 122481192
diameter_proxy_request_rtt_milliseconds_bucket{origin_host="example.com",destination_realm="realm",le="100"} 122500729
diameter_proxy_request_rtt_milliseconds_bucket{origin_host="example.com",destination_realm="realm",le="250"} 122523995
diameter_proxy_request_rtt_milliseconds_bucket{origin_host="example.com",destination_realm="realm",le="1000"} 122551090
diameter_proxy_request_rtt_milliseconds_bucket{origin_host="example.com",destination_realm="realm",le="+Inf"} 122554804
diameter_proxy_request_rtt_milliseconds_count{origin_host="example.com",destination_realm="realm"} 122554804
diameter_proxy_request_rtt_milliseconds_sum{origin_host="example.com",destination_realm="realm"} 663734571.357915
```

## Migration guide

### `1.0.22` -> `1.1.0`

>**CAUTION:** This is the last release of Diameter Proxy that supports `ping-exporter` and `vxlan`. All the options related to these features will be removed in the next `1.2.0` release. Make sure that these features are not used in your setup and prepare a proper replacement. It is recommended to replace the `ping-exporter` with the [Network Performance Probe](https://docs.cennso.com/docs/components/npp/3.0.0) and use the Kubernetes network to communicate with Diameter Proxy.

Despite the new configuration options were added in the Diameter Proxy `1.1.0`, there are no crucial and backward incompatible changes. 
You can use all the new configuration options as is with the default values.

Since new metrics were added in this release, it is worth to import a new Grafana dashboard that comes with Diameter Proxy distribution.
