Skip to content

Latest commit

 

History

History
 
 

tasks

A task describes the how, what, and when to do for a snap job. A task is described in a task manifest, which can be either JSON or YAML. For more information, see the documentation for tasks.

Examples in this folder

  • mock-file.json/yaml: a simple example of task structure in both JSON and YAML format.

    • schedule
      • interval (1s)
    • collector
      • mock
    • processor
      • passthru
    • publisher
      • file
  • psutil-file.yaml: another simple example of collecting statistics and publishing them to a file. This file includes in-line comments to help get oriented with task structure.

    • schedule
      • interval (1s)
    • collector
      • psutil
    • publisher
      • file
  • ceph-file.json: collect numerous statistics around Ceph, a storage system for OpenStack.

    • schedule
      • interval (1s)
    • collector
      • Ceph
    • publisher
      • file
  • psutil-influx.json: a more complex example that collects information from psutil and publishes to an instance of InfluxDB running locally. See influxdb-grafana for other files to get this running.

    • schedule
      • interval (1s)
    • collector
      • psutil
    • publisher
      • influxdb