Skip to content

Plugin for Telegraf for gathering statistics from Cloudflare

License

Notifications You must be signed in to change notification settings

SebastianCzoch/telegraf-cloudflare

Repository files navigation

telegraf-cloudflare

Build Status PyPI version License

Plugin for Telegraf for gathering statistics from Cloudflare

This script is in beta version, use with caution

Installation

$ pip install telegraf-cloudflare

Usage

$ telegraf-cloudflare --zone-id ZONE_ID --email [email protected] --api-key SECRET

Optional parameters

  • --interval (int)

    • Last 60 minutes (value from 59 to 1): 1 minute resolution
    • Last 7 hours (value from 419 to 60): 15 minutes resolution
    • Last 15 hours (value from 899 to 420): 30 minutes resolution
    • Last 72 hours (value from 4320 to 900): 1 hour resolution
    • Older than 3 days (value 525600 to 4320): 1 day resolution

    Not all intervals are available in all plans, more information is available here

Example telegraf configuration

[[inputs.exec]]
  interval = 6h
  commands = ["telegraf-cloudflare telegraf-cloudflare --zone-id ZONE_ID --email [email protected] --api-key SECRET"]
  data_format = "influx"

License

See LICENSE file.

About

Plugin for Telegraf for gathering statistics from Cloudflare

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages