summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/phpdaemon/charts.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/go/collectors/go.d.plugin/modules/phpdaemon/charts.go66
1 files changed, 66 insertions, 0 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/phpdaemon/charts.go b/src/go/collectors/go.d.plugin/modules/phpdaemon/charts.go
new file mode 100644
index 000000000..8d414b1a5
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/phpdaemon/charts.go
@@ -0,0 +1,66 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+package phpdaemon
+
+import "github.com/netdata/netdata/go/go.d.plugin/agent/module"
+
+type (
+ // Charts is an alias for module.Charts
+ Charts = module.Charts
+ // Chart is an alias for module.Chart
+ Chart = module.Chart
+ // Dims is an alias for module.Dims
+ Dims = module.Dims
+)
+
+var charts = Charts{
+ {
+ ID: "workers",
+ Title: "Workers",
+ Units: "workers",
+ Fam: "workers",
+ Ctx: "phpdaemon.workers",
+ Type: module.Stacked,
+ Dims: Dims{
+ {ID: "alive"},
+ {ID: "shutdown"},
+ },
+ },
+ {
+ ID: "alive_workers",
+ Title: "Alive Workers State",
+ Units: "workers",
+ Fam: "workers",
+ Ctx: "phpdaemon.alive_workers",
+ Type: module.Stacked,
+ Dims: Dims{
+ {ID: "idle"},
+ {ID: "busy"},
+ {ID: "reloading"},
+ },
+ },
+ {
+ ID: "idle_workers",
+ Title: "Idle Workers State",
+ Units: "workers",
+ Fam: "workers",
+ Ctx: "phpdaemon.idle_workers",
+ Type: module.Stacked,
+ Dims: Dims{
+ {ID: "preinit"},
+ {ID: "init"},
+ {ID: "initialized"},
+ },
+ },
+}
+
+var uptimeChart = Chart{
+ ID: "uptime",
+ Title: "Uptime",
+ Units: "seconds",
+ Fam: "uptime",
+ Ctx: "phpdaemon.uptime",
+ Dims: Dims{
+ {ID: "uptime", Name: "time"},
+ },
+}