-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'flatfile_update1' into 'OVIS-3.4'
Flatfile update flat file has now been improved to follow v3 container/schema idea. tested in production at sandia. See merge request !641
- Loading branch information
Showing
3 changed files
with
188 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
.\" Manpage for Plugin_store_flatfile | ||
.\" Contact [email protected] to correct errors or typos. | ||
.TH man 7 "29 Aug 2017" "v3.4" "LDMS Plugin store_flatfile man page" | ||
|
||
.SH NAME | ||
Plugin_store_flatfile - man page for the LDMS store_flatfile plugin | ||
|
||
.SH SYNOPSIS | ||
Within ldmsd_controller script or a configuration file: | ||
.br | ||
load name=store_flatfile | ||
.br | ||
config name=store_flatfile path=datadir | ||
.br | ||
strgp_add plugin=store_flatfile [ <attr> = <value> ] | ||
.br | ||
|
||
|
||
.SH DESCRIPTION | ||
The flatfile store generates one file per metric with time, producer, component id, and value columns separated by spaces. The file name is $datadir/$container/$schema/$metric_name. | ||
|
||
.PP | ||
|
||
.SH STRGP_ADD ATTRIBUTE SYNTAX | ||
The strgp_add sets the policies being added. This line determines the output files via | ||
identification of the container and schema. | ||
.TP | ||
.BR strgp_add | ||
plugin=store_flatfile name=<policy_name> schema=<schema> container=<container> | ||
.br | ||
ldmsd_controller strgp_add line | ||
.br | ||
.RS | ||
.TP | ||
plugin=<plugin_name> | ||
.br | ||
This MUST be store_flatfile. | ||
.TP | ||
name=<policy_name> | ||
.br | ||
The policy name for this strgp. | ||
.TP | ||
container=<container> | ||
.br | ||
The container and the schema determine where the output files will be written (see path above). They also are used to match any action=custom configuration.node/meminfo. | ||
.TP | ||
schema=<schema> | ||
.br | ||
The container and schema determines where the output files will be written (see path above). | ||
.RE | ||
|
||
|
||
.SH NOTES | ||
.PP | ||
.IP \[bu] | ||
We expect to develop additional options controlling output files and | ||
output file format. | ||
.IP \[bu] | ||
Please note the argument changes from v2. | ||
.PP | ||
|
||
.SH BUGS | ||
Numeric array metrics are not presently supported. | ||
There is a maximum of 20 concurrent flatfile stores. | ||
The store is brittle to schema with multiple definitions, though it ought not to be. | ||
Unchanged meta-metrics are always written anyway. | ||
There is no option to quote string values, handle rollover, or handle buffering. | ||
|
||
.SH EXAMPLES | ||
.PP | ||
Within ldmsd_controller or in a configuration file | ||
.nf | ||
load name=store_flatfile | ||
config name=store_flatfile path=/XXX/datadir | ||
|
||
# log only Active from the meminfo sampler | ||
strgp_add name=store_flatfile_meminfo plugin=store_flatfile schema=meminfo container=flat | ||
strgp_prdcr_add name=store_flatfile_meminfo regex=localhost1 | ||
strgp_metric_add name=store_flatfile_meminfo metric=Active | ||
strgp_start name=store_flatfile_meminfo regex=localhost1 | ||
|
||
# log all from vmstat | ||
strgp_add name=store_flatfile_vmstat plugin=store_flatfile schema=vmstat container=flat | ||
strgp_prdcr_add name=store_flatfile_vmstat regex=localhost1 | ||
strgp_start name=store_flatfile_vmstat regex=localhost1 | ||
|
||
.fi | ||
|
||
.SH SEE ALSO | ||
ldmsd(8), ldms_quickstart(7), ldmsd_controller(8) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters