ui: metrics: set default for port

while it may not be always correct, we can only win by setting a
reasonable default, taken from

* graphite:
  https://graphite.readthedocs.io/en/stable/feeding-carbon.html#the-plaintext-protocol
* influxdb, udp port:
  https://docs.influxdata.com/influxdb/v1.8/administration/ports/

Also, changing that is easy for the admin and can always be done
afterwards.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-11-21 20:55:13 +01:00
parent 1eb6d2bfdd
commit 9f4e985d99

View File

@ -224,6 +224,7 @@ Ext.define('PVE.dc.InfluxDBEdit', {
xtype: 'proxmoxintegerfield',
name: 'port',
fieldLabel: gettext('Port'),
value: 8089,
minValue: 1,
maximum: 65536,
allowBlank: false,
@ -303,6 +304,7 @@ Ext.define('PVE.dc.GraphiteEdit', {
xtype: 'proxmoxintegerfield',
name: 'port',
fieldLabel: gettext('Port'),
value: 2003,
minimum: 1,
maximum: 65536,
allowBlank: false,