Skip to content

Commit

Permalink
kepler: automate support of the endpoint, live metrics and logging
Browse files Browse the repository at this point in the history
  • Loading branch information
natoscott committed Dec 6, 2023
1 parent 943d94f commit a9ea391
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pmdas/openmetrics/GNUmakefile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/pmdas/openmetrics/kepler.url
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
http://localhost:8888/metrics
3 changes: 2 additions & 1 deletion src/pmlogconf/GNUmakefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -33,6 +33,7 @@ SUBDIRS = \
libvirt \
memory \
networking \
openmetrics \
platform \
statsd \
storage \
Expand Down
38 changes: 38 additions & 0 deletions src/pmlogconf/openmetrics/GNUmakefile
Original file line number Diff line number Diff line change
@@ -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)
5 changes: 5 additions & 0 deletions src/pmlogconf/openmetrics/kepler
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pmlogconf-setup 2.0
ident Kepler power stats
probe openmetrics.kepler values ? include : available
delta 60 seconds
openmetrics.kepler
1 change: 1 addition & 0 deletions src/pmlogconf/openmetrics/localdefs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FILES = kepler

0 comments on commit a9ea391

Please sign in to comment.