artillery-engine-posthog

0.0.1 • Public • Published

Artillery Engine for PostHog

PostHog logo

PostHog is an open-source product analytics platform.

This Artillery engine is designed for users of self-hosted PostHog (Open-Source or PostHog Enterprise). It makes it easy to load test your PostHog deployment to:

  • Make sure the deployment can handle the event volume you're expecting
  • Make sure the deployment can handle bursts in event volumes
  • Take guesswork out of provisioning capacity and make sure that both PostHog and its dependencies (e.g. ClickHouse) are ready to scale

Usage

Install the plugin

npm install -g artillery-engine-posthog

Configuration

  1. Set the address of your PostHog instance with config.target, and set a PostHog API key with config.posthog.apiKey.
  2. Set the engine property of the scenario to posthog.
  3. In your scenario, use:
    • capture to send events to PostHog
    • identify and alias to enrich users metadata

Example Script

config:
  target: "https://posthog.acme.corp"
  posthog:
    apiKey: "{{ $processEnvironment.POSTHOG_API_KEY }}"
  phases:
    - arrivalCount: 5
      duration: 10
  engines:
    posthog: {}
scenarios:
  - name: "posthog engine test"
    engine: posthog
    flow:
      - count: 3
        loop:
        - capture:
            distinctId: "distinct id"
            event: "movie played"
            properties:
              movieId: "Die Hard"
              category: "Christmas"
        - think: 2

(See examples folder for a couple of full examples.)

Run Your Script

POSTHOG_API_KEY=xxx artillery run example.yml

License

MPL 2.0

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.1-6d31f8a1canary
0.0.11latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.1-6d31f8a1
0.0.1-e6063d60
0.0.1-69dd6060
0.0.1-e52b3100
0.0.1-8d776a80
0.0.1-917e5210
0.0.1-df428ce0
0.0.1-8a1929f0
0.0.1-77c9a480
0.0.1-9daa98f0
0.0.1-c4756860
0.0.1-926e8d80
0.0.1-311d76d0
0.0.1-d76844c0
0.0.1-99a7df70
0.0.1-533dfcd0
0.0.1-d77b7a20
0.0.1-5f5adff0
0.0.1-e1fa2a70
0.0.1-4f6f3220
0.0.1-65dd5380
0.0.1-3d8ab530
0.0.1-89fb8d50
0.0.1-ca691670
0.0.1-33860260
0.0.1-c69bc000
0.0.1-43068a40
0.0.1-5a01e360
0.0.1-1f6e1c60
0.0.1-80c93e70
0.0.1-c3be0750
0.0.1-bc966e40
0.0.1-56dbfe80
0.0.1-a8f4d730
0.0.1-05c725a0
0.0.1-c3245a50
0.0.1-046418f0
0.0.1-a231b3e0
0.0.1-2f56d8c0
0.0.1-630bbeb0
0.0.1-07bf7ae0
0.0.1-a05832f0
0.0.1-15069e70
0.0.1-a140f5e0
0.0.1-a49e3710
0.0.1-7b891c90
0.0.1-25744610
0.0.1-cf78d4a0
0.0.1-c49887b0
0.0.1-10da1980
0.0.1-6c1529c0
0.0.1-2acb66a0
0.0.1-acbbd3a0
0.0.1-cc95ef20
0.0.1-ca01f6f0
0.0.1-ef699960
0.0.1-2af901e0
0.0.1-784c9e40
0.0.1-0fdade80
0.0.1-8d8d1250
0.0.1-391fcd60
0.0.1-8ae17dd0
0.0.1-1f744d70
0.0.1-1682bbb0
0.0.1-c8adbb70
0.0.1-9c43ff40
0.0.1-aeba7c90
0.0.1-e99e1260
0.0.1-07478c30
0.0.1-198c0a70
0.0.1-b54a5300
0.0.1-88a6cf10
0.0.1-bf75e550
0.0.1-fa6acff0
0.0.1-66803140
0.0.1-0e34b800
0.0.1-88e686a0
0.0.1-53740480
0.0.1-fedb9590
0.0.1-129c69a0
0.0.1-2344d600
0.0.1-addd21d0
0.0.1-2a2f7a10
0.0.1-99513b70
0.0.1-c0a74fe0
0.0.1-385f4680
0.0.1-4d40d0b0
0.0.1-02da5500
0.0.1-e9feebe0
0.0.1-d5dd8b40
0.0.1-b9d895b0
0.0.1-af8834b0
0.0.1-e3e1aa50
0.0.1-4b6546e0
0.0.1-4206f300
0.0.1-69471c70
0.0.1-7c098300
0.0.1-ead20b30
0.0.1-042221c0
0.0.1-83ceb0d0
0.0.1-732a76a0
0.0.1-af0720c0
0.0.1-c99fd700
0.0.1-d55b1520
0.0.1-9c6625c0
0.0.1-db925350
0.0.1-fdd93630
0.0.1-46ff72e0
0.0.1-578c74a0
0.0.1-a0dc4d30
0.0.1-48e284c0
0.0.1-1ed48b50
0.0.1-f2922e90
0.0.1-f0fd4050
0.0.1-61a6b690
0.0.1-711584a0
0.0.1-34bd5610
0.0.1-30688df0
0.0.1-5ebf9980
0.0.1-11f02210
0.0.1-56d91800
0.0.1-2e563c10
0.0.1-33656960
0.0.1-ef2802b0
0.0.1-0c8e5360
0.0.1-9eb4de70
0.0.1-339dd380
0.0.1-185276e0
0.0.1-e22f3690
0.0.1-018c9170
0.0.1-f6a6aa80
0.0.1-f9d7fcb0
0.0.1-c2d53ba0
0.0.1-f5cba1a0
0.0.1-6e56af40
0.0.1-49f46020
0.0.1-e68006e0
0.0.1-c0bd9d80
0.0.1-3f45ead0
0.0.1-db4ca950
0.0.1-fde8a880
0.0.1-dab34480
0.0.1-e2435a90
0.0.1-edc94a90
0.0.1-347c3710
0.0.1-8e81e340
0.0.1-0a139ea0
0.0.1-981fcd00
0.0.1-5b07d5e0
0.0.1-35f0e1c0
0.0.1-5e061cf0
0.0.1-cb320f90
0.0.1-e359bd20
0.0.1-1b6220c0
0.0.1-d68482d0
0.0.1-efe1a6e0
0.0.1-a73a1690
0.0.1-52b9e3b0
0.0.1-d46133f0
0.0.1-c65efbc0
0.0.1-f9b94ff0
0.0.1-a0b63280
0.0.1-d7109dd0
0.0.1-1c936ad0
0.0.1-e2eb7161
0.0.1-db60c0d0
0.0.1-2c125ab0
0.0.1-0e7fadc0
0.0.1-21c8e170
0.0.1-da207040
0.0.1-049205b0
0.0.1-84b6b140
0.0.1-aaaf4d70
0.0.1-6fd477f0
0.0.1-213bcb50
0.0.1-fb0b4c60
0.0.1-25319360
0.0.1-7f1d7790
0.0.1-aec0b890
0.0.1-10912570
0.0.1-4ae406b0
0.0.1-f98bb480
0.0.1-0f9e3510
0.0.1-854765f0
0.0.1-61037170
0.0.1-67408d10
0.0.1-29a48610
0.0.1-f0ed01e0
0.0.1-ec3de6a0
0.0.1-40f80cf0
0.0.1-99d295c0
0.0.1-d51d1590
0.0.1-2894fc40
0.0.1-6cef8670
0.0.1-f7534a20
0.0.1-4d794e31
0.0.1-ffdd0a11
0.0.1-a2602d20
0.0.1-e8a69c30
0.0.1-d69052f0
0.0.1-ad6a2e90
0.0.1-f449d5d0
0.0.1-498fd090
0.0.1-c163dc00
0.0.1-b67bebb0
0.0.1-486ce720
0.0.1-cad82890
0.0.1-ecfb4ff0
0.0.1-d6a468b0
0.0.1-a8bfa8e0
0.0.1-18186a10
0.0.1-c1176770
0.0.1-572880f0
0.0.1-12670e30
0.0.1-9277f140
0.0.1-bfa0fe50
0.0.1-766ce390
0.0.1-e388da10
0.0.1-6a9c57c0
0.0.1-563696c1
0.0.1-ee181c20
0.0.1-3aa67ba0
0.0.1-80e9ff60
0.0.1-4e834560
0.0.1-61d96f90
0.0.1-6602d260
0.0.1-18ad4ac0
0.0.1-fef09070
0.0.1-15fcca70
0.0.1-a4defca0
0.0.1-c1dac360
0.0.1-6629cb20
0.0.1-cc9156a0
0.0.1-84efa960
0.0.1-8ddaa8a0
0.0.1-ef9d0960
0.0.1-a4feb0d0
0.0.1-abc81220
0.0.1-7631d270
0.0.1-968cac30
0.0.1-38ff32c0
0.0.1-8622de30
0.0.1-0467c8d0
0.0.1-9ac3e120
0.0.1-c6362a60
0.0.1-3a221870
0.0.1-69b12450
0.0.1-28610be0
0.0.1-ed94c280
0.0.1-f8c884c0
0.0.1-6e08ffe0
0.0.1-da561580
0.0.1-5b355f80
0.0.1-be1e0880
0.0.1-1eac5df0
0.0.1-77ea3e90
0.0.1-683e5690
0.0.1-331ee210
0.0.1-ab48a8e0
0.0.1-5b52b4d0
0.0.1-ba9baf50
0.0.1-9c511180
0.0.1-5516ff00
0.0.1-800b2a70
0.0.1-989328c0
0.0.1-b8419d20
0.0.1-b0f1e050
0.0.1-2c714fc0
0.0.1-4c012800
0.0.1-3f3e92d0
0.0.1-0bf63e90
0.0.1-4af8d730
0.0.1-889006a0
0.0.1-ab5dd4f0
0.0.1-a77a3e90
0.0.1-86973340
0.0.1-d39abda0
0.0.1-7dfdba30
0.0.1-648869d0
0.0.1-2f484f80
0.0.1-c34ae8a0
0.0.1-70851460
0.0.1-47b51810
0.0.1-b9eed290
0.0.1-eeee67c0
0.0.1-006b8d00
0.0.1-285d7830
0.0.1-4030f6d0
0.0.1-c6134940
0.0.1-c20229c0
0.0.1-8ac06770
0.0.1-7c83e2b0
0.0.1-651351e1
0.0.1-839736f0
0.0.1-076314a0
0.0.1-f3512940
0.0.1-0a58dd80
0.0.1-ecd59d70
0.0.1-04901e20
0.0.1-18592750
0.0.1-f23d4c60
0.0.1-c6ee7320
0.0.1-8c74a5f0
0.0.1-533da4b0
0.0.1-7871d390
0.0.1-338b0700
0.0.1-06989c60
0.0.1-407d2250
0.0.1-144e77d0
0.0.1-5b10fdf0
0.0.1-1a491fd0
0.0.1-e07b7550
0.0.1-8771d370
0.0.1-c08c6950
0.0.1-884a2160
0.0.1-9eb8ab50
0.0.11

Package Sidebar

Install

npm i artillery-engine-posthog

Weekly Downloads

3

Version

0.0.1

License

MPL-2.0

Unpacked Size

23.6 kB

Total Files

4

Last publish

Collaborators

  • shoreditch-ops