PCP2ELASTICSEARCH(1) General Commands Manual PCP2ELASTICSEARCH(1) (NAME) pcp2elasticsearch - PCP Elasticsearch (SYNOPSIS) pcp2elasticsearch [-5CGHIjLmnrRvV?] [-4 action] [-8|-9 limit] [-a archive] [-A align] [--archive-folio folio] [-b|-B space-scale] [-c config] [--container container] [-D debug] [--daemonize] [-e derived] [-g URL] [-h host] [-i instances] [-J rank] [-K spec] [-N predicate] [-O origin] [-p type] [-P|-0 precision] [-q|-Q count-scale] [-s samples] [-S starttime] [-t interval] [-T endtime] [-x index] [-X hostid] [-y|-Y time-scale] metricspec [...] (DESCRIPTION) pcp2elasticsearch PCP Elasticsearch . / . pcp2elasticsearch pmrep(1) . metricspec pcp2elasticsearch pmrep(1) . pcp2elasticsearch.conf pmrep.conf(5) . pcp2elasticsearch pmrep.conf(5) . pmrep(1) pcp2elasticsearch . pmrep(1) . ( pmGetOptions(3)) ( ) . ( ) . ( ) ..SH " (CONFIGURATION FILE)" pcp2elasticsearch pmrep.conf(5) . pmrep.conf : version source speclocal derived header globals samples interval type type_prefer ignore_incompat names_change instances live_filter rank limit_filter limit_filter_force invert_filter predicate omit_flat include_labels precision precision_force count_scale count_scale_force space_scale space_scale_force time_scale time_scale_force. pmrep.conf . pcp2elasticsearch es_server () (URL) Elasticsearch . -g . http://localhost:9200 . es_auth () Elasticsearch . none . es_password () Elasticsearch . none . es_index () (index) Elasticsearch . -x . pcp . es_hostid () (host-id) Elasticsearch . -X . . es_search_type () (search type) Elasticsearch . -p . pcp-metric . (OPTIONS) : -0 precision, --precision-force=precision -P . -4 action, --names-change=action action () . PMDA pcp2elasticsearch . action update ( ) ignore ( - ) abort ( ). -5, --ignore-unknown (resolve) . . -8 limit, --limit-filter=limit / limit. . . . . -J -N. -9 limit, --limit-filter-force=limit -8 . -a archive, --archive=archive Performance Co-Pilot (PCP) archive . -A align, --align=align align . align PCPIntro(1) . --archive-folio=folio PCP folio pmchart(1) mkaf(1). -b scale, --space-scale=scale / () bytes Kbytes KB Mbytes MB . . pmParseUnitsStr(3). -B scale, --space-scale-force=scale -b . -c config, --config=config config . config .conf . : ./pcp2elasticsearch.conf $HOME/.pcp2elasticsearch.conf $HOME/pcp/pcp2elasticsearch.conf $PCP_SYSCONF_DIR/pcp2elasticsearch.conf. pmrep.conf(5) . --container=container container ( -h)..TP -C, --check . --daemonize (daemon) . -e derived, --derived=derived derived (). derived (``/'') (``.'') PCP . PCP pmLoadDerivedConfig(3) pmRegisterDerived(3) . pmrep.conf(5) (metricsets) . . -Dderive . -g URL, --es-host=URL URL Elasticsearch . -G, --no-globals (: pmrep.conf(5)). -h host, --host=host pmcd(1) host localhost . -H, --no-header . -i instances, --instances=instances instances () . . pmrep(1) . -I, --ignore-incompat . ( ) pcp2elasticsearch . . PMNS . -j, --live-filter (live filtering). ( ). . : -n. -J rank, --rank=rank / ranked () (set-valued). . . . : -6. : -8. -K spec, --spec-local=spec (: -L) -K PMDA DSO . spec pmSpecLocalPMDA(3) . -K . -L, --local-PMDA DSO PMDA PMCD. : -K. -m, --include-labels PCP . -n, --invert-filter . ( : -j) ( : -J) . . -N predicate, --predicate=predicate predicate . (: -J) . (predicates) . instance domain ( ) (: PCPIntro(1)) / . : -6. proc.memory.rss ( ) predicate proc.io.total_bytes mem.util.used / ( -J) . mem.util.used ( ) . -O origin, --origin=origin origin (: -S -T). origin PCPIntro(1) . -p type, --es-search-type=type type Elasticsearch . -P precision, --precision=precision precision (). ( ). ..TP -q scale, --count-scale=scale / count x 10^-1 count count x 10 count x 10^2 10^-8 10^7 . ( .) . : pmParseUnitsStr(3). -Q scale, --count-scale-force=scale -q . -r, --raw . . -R, --raw-prefer -r . -s samples, --samples=samples samples . samples 0 -s pcp2elasticsearch ( ) PCP ( ) . : -T. -S starttime, --start=starttime starttime . starttime PCPIntro(1) . -t interval, --interval=interval interval . interval PCPIntro(1) ( ). -T . -T endtime, --finish=endtime endtime . endtime PCPIntro(1) . pcp2elasticsearch samples ( -s ) interval ( -t ). samples interval samples . -T -s -t endtime pcp2elasticsearch . -v, --omit-flat (set-valued) ( disk.dev.read) <<>> (flat) ( kernel.all.sysfork) . -i -I . -V, --version . -x index, --es-index=index index Elasticsearch . -X hostid, --es-hostid=hostid hostid Elasticsearch . -y scale, --time-scale=scale / nanosec ns microsec us millisec ms hour hr . . : pmParseUnitsStr(3). -Y scale, --time-scale-force=scale -y . -?, --help ..SH " (OUTPUT FORMAT)" pcp2elasticsearch Elasticsearch : { "mappings": { "properties": { "@timestamp": { "type": "long" }, "host-id": { "type": "text" } } } } : { "@host-id": "bozo", "@timestamp": 1507637520, "mem": { "util": { "used": 4525820, "free": 3344000 } }, "disk": { "partitions": { "@instances": [ { "read": 1121, "@id": "sda1" }, { "read": 77306, "@id": "sda2" }, { "read": 131, "@id": "sda3" } ] } } } (FILES) pcp2elasticsearch.conf pcp2elasticsearch ( -c ) $PCP_SYSCONF_DIR/pmrep/*.conf pmrep PCP (PCP ENVIRONMENT) PCP_ PCP . /etc/pcp.conf . $PCP_CONF pcp.conf(5) . PCP pmGetOptions(3) . PCP_DISCRETE_ONCE . (DEBUGGING OPTIONS) -D --debug stderr . debug pmdbg(1) -l ..SH " (SEE ALSO)" PCPIntro(1) mkaf(1) pcp(1) pcp2graphite(1) pcp2influxdb(1) pcp2json(1) pcp2spark(1) pcp2xlsx(1) pcp2xml(1) pcp2zabbix(1) pmcd(1) pminfo(1) pmrep(1) pmGetOptions(3) pmLoadDerivedConfig(3) pmParseUnitsStr(3) pmRegisterDerived(3) pmSpecLocalPMDA(3) LOGARCHIVE(5) pcp.conf(5) pmrep.conf(5) PMNS(5). Performance Co-Pilot PCP PCP2ELASTICSEARCH(1)