pcp
[Top] [All Lists]

[pcp] pcp update: updated JSON PMDA readme

To: pcp <pcp@xxxxxxxxxxx>
Subject: [pcp] pcp update: updated JSON PMDA readme
From: David Smith <dsmith@xxxxxxxxxx>
Date: Tue, 26 Apr 2016 16:20:54 -0500
Cc: Marko Myllynen <myllynen@xxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1
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)

<Prev in Thread] Current Thread [Next in Thread>
  • [pcp] pcp update: updated JSON PMDA readme, David Smith <=