7.2.2 • Published 11 months ago

ut-port-performance v7.2.2

Weekly downloads
7
License
Apache-2.0
Repository
github
Last release
11 months ago

Performance port

This port allows collecting of performance metrics and sending them to different backends. Currently InfluxDB is the only supported backend, but also there is a plan for supporting StatsD.

The following configuration (as part of the environment configuration file) allows reporting of metrics to InfluxDB, using UDP packets:

{
  "performance": {
    "influx":{
      "host":"influxdb",
      "port":4444,
      "interval": 1000
    }
  }
}

This port exposes one significant method: register(namespace, type, code, name, interval). The parameters have the following meaning:

  • namespace: the name of the InfluxDB measurement measurement
  • type: the type of measurement: 'gauge', 'counter', 'average'
  • code: a short, unique identifier of the metric within the measurement
  • name: the user friendly name of the metric
  • interval (in seconds): if passed, then counter average for this interval can be calculated on demand. The average is calculated over the flushed values. This means that interval should be longer than the flush interval, but also not too big, as memory for up to 100 flushes is reserved.

The types of measurements have the following intended usage:

  • gauge: measuring a direct value, which will be averaged over the count of observations: sum(cnt)/count. Useful for monitoring resource usage like memory, connection counts, etc.
  • counter: measuring the average rate of change of a value over the reported interval: diff(cnt)/diff(time). Useful for monitoring amounts like I/O count/volume, operations count, etc.
  • average: measuring the average rate of change of a value over the change of another value value: diff(cnt)/diff(base). Useful for monitoring resources spent per operation.

The register method returns a function, which needs to be called when the corresponding registered metric changed its value. Depending on metric type, the function needs to be invoked with the following arguments:

  • gauge(value) - value is the observed metric
  • counter(value) - value indicates much to add to the observed metric
  • average(value, base) - value and base indicate how much to add to the observed value and denominator base.
7.2.2

11 months ago

7.2.1

11 months ago

7.2.0

11 months ago

7.1.9

2 years ago

7.1.8

3 years ago

7.1.7

4 years ago

7.1.6

4 years ago

7.1.5

4 years ago

7.1.4

5 years ago

7.1.3

5 years ago

7.1.2

5 years ago

7.1.1

5 years ago

7.1.0

5 years ago

7.0.2

5 years ago

7.0.1

5 years ago

7.0.0

5 years ago

6.0.0

6 years ago

6.0.0-ut6.2

6 years ago

6.0.0-ut6.1

7 years ago

5.9.0

7 years ago

6.0.0-ut6.0

7 years ago

5.8.0-rc.0

7 years ago

5.8.0

7 years ago

5.7.0-rc.0

7 years ago

5.7.0

7 years ago

5.6.0

7 years ago

5.5.4

7 years ago

5.5.3

7 years ago

5.5.2

7 years ago

5.5.1

7 years ago

5.5.0

7 years ago

5.4.17

7 years ago

5.4.16

7 years ago

5.4.15

7 years ago

5.4.14

7 years ago

5.4.13

7 years ago

5.4.12

7 years ago

5.4.11

7 years ago

5.4.10

7 years ago

5.4.9

7 years ago

5.4.8

7 years ago

5.4.7

8 years ago

5.4.6

8 years ago

5.4.5

8 years ago