collectd-cdn-collectd的CDN stats插件-Government Digital Service Installation Vendors

collectd-cdn-collectd的CDN stats插件-Government Digital Service

發佈:2020-12-23 14:17:52.053195

做者:Government Digital Service

做者郵箱:dan.carley@gmail.com

首頁:https://github.com/gds-operations/collectd-cdn

文檔:None

下載連接 UNKNOWN

collectd_cdn

.. image:: https://travis-ci.org/gds-operations/collectd-cdn.svg?branch=master :target: https://travis-ci.org/gds-operations/collectd-cdnhtml

A collectd plugin to fetch edge stats from CDN vendors. So that you can store and graph them to your heart's content.python

Installation

The latest stable version can be installed from PyPI_. Either by hand:git

.. code:: shellgithub

$ pip install collectd-cdn

Or configuration management, such as Puppet:shell

.. code:: puppetide

package { 'collectd-cdn':
  ensure   => present,
  provider => 'pip',
}

.. _PyPI: https://pypi.python.org/pypisvg

Vendors

A single CDN vendor is currently supported.fetch

Fastly ~~~~~~spa

To configure the plugin:.net

.. code:: xml

<LoadPlugin python>
  Globals true
</LoadPlugin>

<Plugin python>
  Import "collectd_cdn.fastly"

  <Module "collectd_cdn.fastly">
    # Authenticate using user/pass (recommended)
    ApiUser "user@example.com"
    ApiPass "password"

    # OR using an API key
    ApiKey "68b329da9893e34099c7d8ad5cb9c940"

    <Service>
      Name "www"
      Id "6IqS8vK4QRMAlb1ByyjrJF"
    </Service>
    <Service>
      Name "assets"
      Id "qd8G3pOP2nGw0UlSE04t8v"
    </Service>
  </Module>
</Plugin>

The highest resolution of data that Fastly provide is per-minute. So you'll need to configure your storage, such as Graphite's Carbon_, with a retention rate to match:

.. code:: ini

[cdn_fastly]
pattern = ^[^.]+\.cdn_fastly-.+\.
retentions = 1m:31d,…

.. _Carbon: http://graphite.readthedocs.org/en/0.9.x/config-carbon.html#storage-schemas-conf

Copy from pypi.org

查詢時間:6.303ms
渲染時間:6.438ms

本文同步分享在 博客「zhenruyan」(other)。
若有侵權,請聯繫 support@oschina.cn 刪除。
本文參與「OSC源創計劃」,歡迎正在閱讀的你也加入,一塊兒分享。

相關文章
相關標籤/搜索