Skip to main content

This script takes input and lastic and kafka based on the config. if we want to add another plugin to this then add the plugin details in the config file in the plugins and create your new input file in the input folder.

Project description

Python sfapmetl feature
  • To run python script, ProjectName and appName should be present.
  • Please provide config as mentione below,
key: <profile key>
tags:
  Name: <name>
  appName: <appName>
  projectName: <projectName>
metrics:
  plugins:
    - name: <PluginName>
      enabled: true
      url:
        job: <job_url>
        stage: <stage_url>
        task: <task_url>
        authkey: <authentication_key_for_the_urls>
      buffer_path: <path for bufferfile.json>     #provide path for bufferfile which keeps record of unfinished job,stage and tasks.

Note:

  • If we want to add another plugin to this, add the plugin details in the config file under the plugins section and create your new input file in the input folder.
  • The input python file name should always be same as the plugin name. In this case plugin name is "etl".
  • There should be a fuction named "work" with config parameter which will be invoked when we run the script.
  • The work fuction should return list of dictionary objects.

Installation

$ pip install sf-apm-etl

Usage

$ sfapmetl <config file path>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sfapmetl-0.1.0.tar.gz (8.9 kB view hashes)

Uploaded Source

Built Distribution

sfapmetl-0.1.0-py2.py3-none-any.whl (9.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page