-
Notifications
You must be signed in to change notification settings - Fork 0
⚙️ Plugin Workflow
Phillip Rafail Papadakis edited this page Feb 6, 2025
·
1 revision
When the aw-sync-agent
starts, it initializes the chosen plugins specified in the configuration. The workflow is as follows:
-
Initialization:
- Upon startup, the agent reads the
aw-sync-settings.yaml
file to identify which plugins are enabled. - Each plugin is initialized according to its specific requirements, preparing it for data processing.
- Upon startup, the agent reads the
-
Data Synchronization:
- At every sync cycle, the agent collects data from the local ActivityWatch instance.
- The collected data is then passed through the initialized plugins sequentially.
-
Data Processing:
- Each plugin processes the data according to its defined functionality (e.g., filtering, transformation).
- After processing, the plugins return the final dataset that has been modified or filtered as per the plugin logic.
-
Data Push to Prometheus:
- The final processed data is then securely pushed to the Prometheus database using the remote-write feature.
This modular approach allows for flexible and customizable data processing, ensuring that only the desired data is sent to Prometheus while maintaining the integrity and confidentiality of sensitive information.