Puppet Class: profile::webperf::arclamp

Defined in:
modules/profile/manifests/webperf/arclamp.pp

Overview

Class: profile::webperf::arclamp

Provision Arc Lamp, which processes PHP stack traces and generates SVG flame graphs. This profile also provisions an HTTP server exposing the trace logs and SVG flame graphs.

See also profile::webperf::site, which provisions a reverse proxy to expose the data at <performance.wikimedia.org/arclamp/>.

Parameters

redis_host

Address of Redis server that is publishing stack traces.

redis_port

Port of Redis server that is publishing stack traces (usually port 6379).

Parameters:

  • redis_host (Any) (defaults to: hiera('profiler::webperf::arclamp::redis_host'))
  • redis_port (Any) (defaults to: hiera('profiler::webperf::arclamp::redis_port'))


18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'modules/profile/manifests/webperf/arclamp.pp', line 18

class profile::webperf::arclamp (
    $redis_host = hiera('profiler::webperf::arclamp::redis_host'),
    $redis_port = hiera('profiler::webperf::arclamp::redis_port'),
) {
    class { 'arclamp':
        redis_host => $redis_host,
        redis_port => $redis_port,
    }

    httpd::site { 'arclamp':
        content => template('profile/webperf/arclamp/httpd.conf.erb'),
    }

    ferm::service { 'arclamp_http':
        proto => 'tcp',
        port  => '80',
    }
}