On pcpfans.git dsmith/dev, please pull:
commit 9bee1f442baec1dada26156e0f68365bdefe74ef
Author: David Smith <dsmith@xxxxxxxxxx>
Date: Tue Apr 26 16:16:42 2016 -0500
Add notes describing when new JSON data sources are created.
diff --git a/src/pmdas/json/README b/src/pmdas/json/README
index 1279f20..bbfaea3 100644
--- a/src/pmdas/json/README
+++ b/src/pmdas/json/README
@@ -23,6 +23,12 @@ Example config.json:
"trusted_directory_list" : [ "/var/lib/pcp/pmdas/json/trusted" ]
}
+Note that the config.json config file is read once when the JSON pmda
+starts. Every time metrics are refreshed, the directories listed in
+the 'directory_list' and 'trusted_directory_list' config file options
+are traversed, looking for new (and deleted) JSON data sources
+(described below).
+
JSON DATA SOURCES
There are 2 sets of information needed for a particular JSON source: a
@@ -69,6 +75,10 @@ all the metrics under 'json.simple':
json.simple.string_value
value "testing, 1, 2, 3"
+Note that the metadata.json file is read only once. If changes to a
+metadata.json file are needed, the JSON pmda will need to be restarted
+after the metadata.json changes are made.
+
METADATA FILE SYNTAX
Here's a description of metadata file syntax. First the "global" options:
--
David Smith
dsmith@xxxxxxxxxx
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)
|