diff --git a/src/pmdas/openmetrics/GNUmakefile b/src/pmdas/openmetrics/GNUmakefile index c18414586c..86573f9de4 100644 --- a/src/pmdas/openmetrics/GNUmakefile +++ b/src/pmdas/openmetrics/GNUmakefile @@ -1,6 +1,6 @@ # # Copyright (c) 2017 Ronak Jain. -# Copyright (c) 2017,2019-2020 Red Hat. +# Copyright (c) 2017,2019-2020,2023 Red Hat. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the @@ -21,7 +21,7 @@ PYSCRIPT = pmda$(IAM).python LDIRT = domain.h root pmns $(IAM).log DOMAIN = $(IAM) # common endpoint URLs (on: enabled, off: available) -ONURLS = grafana.url +ONURLS = grafana.url kepler.url OFFURLS = collectd.url etcd.url spark.url vmware.url MAN_SECTION = 1 diff --git a/src/pmdas/openmetrics/kepler.url b/src/pmdas/openmetrics/kepler.url new file mode 100644 index 0000000000..509ba4c7a8 --- /dev/null +++ b/src/pmdas/openmetrics/kepler.url @@ -0,0 +1 @@ +http://localhost:8888/metrics diff --git a/src/pmlogconf/GNUmakefile b/src/pmlogconf/GNUmakefile index e3e2558a8f..b3ef929a0d 100644 --- a/src/pmlogconf/GNUmakefile +++ b/src/pmlogconf/GNUmakefile @@ -1,5 +1,5 @@ # -# Copyright (c) 2011-2018,2020 Red Hat. +# Copyright (c) 2011-2018,2020,2023 Red Hat. # Copyright (c) 2000,2004 Silicon Graphics, Inc. All Rights Reserved. # # This program is free software; you can redistribute it and/or modify it @@ -33,6 +33,7 @@ SUBDIRS = \ libvirt \ memory \ networking \ + openmetrics \ platform \ statsd \ storage \ diff --git a/src/pmlogconf/openmetrics/GNUmakefile b/src/pmlogconf/openmetrics/GNUmakefile new file mode 100644 index 0000000000..c4fcb1c98d --- /dev/null +++ b/src/pmlogconf/openmetrics/GNUmakefile @@ -0,0 +1,38 @@ +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 2 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# + +TOPDIR = ../../.. +include $(TOPDIR)/src/include/builddefs +include localdefs + +WORKDIR := $(shell pwd) +GROUP := $(shell basename $(WORKDIR)) +GROUPETC = $(PCP_SYSCONF_DIR)/pmlogconf +GROUPVAR = $(PCP_VAR_DIR)/config/pmlogconf + +LDIRT = GNUmakefile + +DEFAULT = $(FILES) + +CONFIGS = $(subst "./","",$(DEFAULT)) + +default_pcp: $(DEFAULT) + +install_pcp: install + +install: default_pcp + $(INSTALL) -d $(GROUPETC)/$(GROUP) + $(INSTALL) -d $(GROUPVAR)/$(GROUP) + @for f in $(CONFIGS); do \ + $(INSTALL) -m 644 -t $(GROUPVAR)/$(GROUP)/$$f $$f $(GROUPETC)/$(GROUP)/$$f; \ + done + +include $(BUILDRULES) diff --git a/src/pmlogconf/openmetrics/kepler b/src/pmlogconf/openmetrics/kepler new file mode 100644 index 0000000000..4bb6b6ce7b --- /dev/null +++ b/src/pmlogconf/openmetrics/kepler @@ -0,0 +1,5 @@ +#pmlogconf-setup 2.0 +ident Kepler power stats +probe openmetrics.kepler values ? include : available +delta 60 seconds + openmetrics.kepler diff --git a/src/pmlogconf/openmetrics/localdefs b/src/pmlogconf/openmetrics/localdefs new file mode 100644 index 0000000000..787eb1b3e7 --- /dev/null +++ b/src/pmlogconf/openmetrics/localdefs @@ -0,0 +1 @@ +FILES = kepler