~charmers/charms/precise/squid-reverseproxy/trunk

« back to all changes in this revision

Viewing changes to config.yaml

  • Committer: Tom Haddon
  • Date: 2014-05-01 14:49:51 UTC
  • mfrom: (45.1.1 squid-trunk)
  • Revision ID: tom.haddon@canonical.com-20140501144951-0h1bhxjbpw7vwawu
[bloodearnest,r=mthaddon] Add support for sending cache metrics to statsd

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
  snmp_community:
77
77
    type: string
78
78
    default: ''
79
 
    description: SNMP community string for monitoring the service.
 
79
    description: SNMP community string for monitoring the service. Required for metrics to be enabled.
80
80
  snmp_allowed_ips:
81
81
    # would like to use "regex" here, but it doesn't appear to work
82
82
    type: string
83
83
    default: ''
84
84
    description: Single, or json-formatted list of, IP (with optional subnet mask) allowed to query SNMP.
85
85
    # validator: '[0-9a-zA-z]{6,32}'
 
86
  snmp_port:
 
87
    type: int
 
88
    default: 3401
 
89
    description: Port for snmp service
86
90
  nagios_context:
87
91
    default: "juju"
88
92
    type: string
104
108
    description: >
105
109
      The parameters to pass to the nrpe plugin check_http. String will be formatted with config data
106
110
  nagios_service_type:
107
 
     default: "generic"
108
 
     type: string
109
 
     description: >
110
 
       What service this component forms part of, e.g. supermassive-squid-cluster. Used by nrpe.
 
111
    default: "generic"
 
112
    type: string
 
113
    description: >
 
114
      What service this component forms part of, e.g. supermassive-squid-cluster. Used by nrpe.
111
115
  package_status:
112
116
     default: "install"
113
117
     type: "string"
140
144
    default: false
141
145
    type: boolean
142
146
    description: Enables forward proxying
 
147
  metrics_target:
 
148
    default: ""
 
149
    type: string
 
150
    description: Destination for metrics, format "host:port". If not present and
 
151
      valid, metrics disabled.
 
152
  metrics_scheme:
 
153
    default: "dev.$UNIT.squid.$METRIC"
 
154
    type: string
 
155
    description: |
 
156
      Naming scheme for metrics. Special values $UNIT and $METRIC can be used
 
157
      for more complex schemes, e.g. for suffixes for graphite processing .
 
158
  metrics_sample_interval:
 
159
    default: 5
 
160
    type: int
 
161
    description: Period for metrics cron job to run in minutes
 
162
  metrics:
 
163
    default: |
 
164
      cacheCpuUsage
 
165
      cacheCurrentSwapSize
 
166
      cacheDnsSvcTime.5
 
167
      cacheHttpErrors
 
168
      cacheHttpAllSvcTime.5
 
169
      cacheHttpHitSvcTime.5
 
170
      cacheHttpMissSvcTime.5
 
171
      cacheHttpNhSvcTime.5
 
172
      cacheHttpNmSvcTime.5
 
173
      cacheHttpInKb
 
174
      cacheHttpOutKb
 
175
      cacheMaxResSize
 
176
      cacheMemMaxSize
 
177
      cacheMemUsage
 
178
      cacheNumObjCount
 
179
      cachePeerRtt
 
180
      cacheRequestByteRatio.5
 
181
      cacheRequestHitRatio.5
 
182
      cacheSwapHighWM
 
183
      cacheSwapLowWM
 
184
      cacheSwapMaxSize
 
185
      cacheSysNumReads
 
186
      cacheSysPageFaults
 
187
      cacheSysStorage
 
188
      cacheSysVMsize
 
189
    type: string
 
190
    description: "
 
191
      List of SNMP metrics to be exported. Names should match Squid's SNMP
 
192
      names at http://wiki.squid-cache.org/Features/Snmp#Squid_OIDs.  By
 
193
      default, this charm uses the 5min sampling when averages are used and
 
194
      specifies the .5 measurements explicitly. If you want to use 1m or 60m
 
195
      timings, you should be explicit (.1/.60, and probably change the cron job
 
196
      frequency. Warning: any metric starting with 'cachePeer...' will produce
 
197
      1 metric per configured peer, so can increase the number of metrics
 
198
      rapidly if you have lots of peers."