summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/phpdaemon/metrics.go
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-26 08:15:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-26 08:15:20 +0000
commit87d772a7d708fec12f48cd8adc0dedff6e1025da (patch)
tree1fee344c64cc3f43074a01981e21126c8482a522 /src/go/collectors/go.d.plugin/modules/phpdaemon/metrics.go
parentAdding upstream version 1.46.3. (diff)
downloadnetdata-87d772a7d708fec12f48cd8adc0dedff6e1025da.tar.xz
netdata-87d772a7d708fec12f48cd8adc0dedff6e1025da.zip
Adding upstream version 1.47.0.upstream/1.47.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/go/collectors/go.d.plugin/modules/phpdaemon/metrics.go')
-rw-r--r--src/go/collectors/go.d.plugin/modules/phpdaemon/metrics.go33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/phpdaemon/metrics.go b/src/go/collectors/go.d.plugin/modules/phpdaemon/metrics.go
deleted file mode 100644
index 1be3c0be3..000000000
--- a/src/go/collectors/go.d.plugin/modules/phpdaemon/metrics.go
+++ /dev/null
@@ -1,33 +0,0 @@
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-package phpdaemon
-
-// https://github.com/kakserpom/phpdaemon/blob/master/PHPDaemon/Core/Daemon.php
-// see getStateOfWorkers()
-
-// WorkerState represents phpdaemon worker state.
-type WorkerState struct {
- // Alive is sum of Idle, Busy and Reloading
- Alive int64 `stm:"alive"`
- Shutdown int64 `stm:"shutdown"`
-
- // Idle that the worker is not in the middle of execution valuable callback (e.g. request) at this moment of time.
- // It does not mean that worker not have any pending operations.
- // Idle is sum of Preinit, Init and Initialized.
- Idle int64 `stm:"idle"`
- // Busy means that the worker is in the middle of execution valuable callback.
- Busy int64 `stm:"busy"`
- Reloading int64 `stm:"reloading"`
-
- Preinit int64 `stm:"preinit"`
- // Init means that worker is starting right now.
- Init int64 `stm:"init"`
- // Initialized means that the worker is in Idle state.
- Initialized int64 `stm:"initialized"`
-}
-
-// FullStatus FullStatus.
-type FullStatus struct {
- WorkerState `stm:""`
- Uptime *int64 `stm:"uptime"`
-}