Skip to content

Instantly share code, notes, and snippets.

@woodsaj
Last active August 9, 2017 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woodsaj/289b9d838c321c73dba1b2d982cf24b0 to your computer and use it in GitHub Desktop.
Save woodsaj/289b9d838c321c73dba1b2d982cf24b0 to your computer and use it in GitHub Desktop.
Sovrn HostedMetrics
## Global settings ##
instance = "on-prem"
max_procs = 4
spool_dir = "spool"
pid_file = "carbon-relay-ng.pid"
## Logging ##
# one of critical error warning notice info debug
# see docs/logging.md for level descriptions
log_level = "notice"
# you can also validate that each series has increasing timestamps
validate_order = false
# How long to keep track of invalid metrics seen
# Useful time units are "s", "m", "h"
bad_metrics_max_age = "6h"
## Inputs ##
### plaintext Carbon ###
listen_addr = "0.0.0.0:2003"
### Pickle Carbon ###
pickle_addr = "0.0.0.0:2013"
## Outputs ##
### route to graphite servers. ###
[[route]]
key = 'go-carbon'
type = 'sendAllMatch'
destinations = [
'<graphite01>:2003 spool=true pickle=false'
'<graphite02>:2003 spool=true pickle=false'
]
[instrumentation]
graphite_addr = "localhost:2003"
graphite_interval = 10000 # in ms
## Global settings ##
instance = "<dc name>"
max_procs = 4
spool_dir = "spool"
pid_file = "carbon-relay-ng.pid"
## Logging ##
# one of critical error warning notice info debug
# see docs/logging.md for level descriptions
log_level = "notice"
# you can also validate that each series has increasing timestamps
validate_order = false
# How long to keep track of invalid metrics seen
# Useful time units are "s", "m", "h"
bad_metrics_max_age = "6h"
## Inputs ##
### plaintext Carbon ###
listen_addr = "0.0.0.0:2003"
### Pickle Carbon ###
pickle_addr = "0.0.0.0:2013"
## Outputs ##
### send to GrafanaCloud ###
[[route]]
key = 'grafanaNet'
type = 'grafanaNet'
addr = 'https://tsdb-77217-sovrn.hosted-metrics.grafana.net/metrics'
apikey = '<Your Grafana.com API Key>'
schemasFile = '/etc/carbon-relay-ng/storage-schemas.conf'
concurrency = 25
flushMaxWait = 1000
### route to on-prem graphite cluster. ###
[[route]]
key = 'onPrem'
type = 'sendAllMatch'
destinations = [
'<carbon-relay-ng>:2003 spool=true pickle=false'
]
[instrumentation]
graphite_addr = "localhost:2003"
graphite_interval = 10000 # in ms
# Schema definitions for Whisper files. Entries are scanned in order,
# and first match wins. This file is scanned for changes every 60 seconds.
#
# [name]
# pattern = regex
# retentions = timePerPoint:timeToStore, timePerPoint:timeToStore, ...
# Carbon's internal metrics. This entry should match what is specified in
# CARBON_METRIC_PREFIX and CARBON_METRIC_INTERVAL settings
[carbon]
pattern = ^carbon\.
retentions = 60:90d
[cassandra]
pattern = ^adflow.cassandra.*
retentions = 5m:30d,30m:90d,1h:1y
[nozzle]
pattern = ^adflow.nozzle.*
retentions = 30s:2d,5m:30d,30m:90d,1h:1y
[sitecounts]
pattern = ^adflow.sitecounts.*
retentions = 30s:2d,5m:30d,30m:90d,1h:1y
[cassandra-dfw2]
pattern = ^DFW2.adflow.cassandra.*
retentions = 5m:30d,30m:90d,1h:1y
[nozzle-dfw2]
pattern = ^DFW2.adflow.nozzle.*
retentions = 30s:2d,5m:30d,30m:90d,1h:1y
[sitecounts-dfw2]
pattern = ^DFW2.adflow.sitecounts.*
retentions = 30s:2d,5m:30d,30m:90d,1h:1y
[video-dfw2]
pattern = ^DFW2.adflow.video.*
retentions = 30s:2d,5m:30d,30m:90d,1h:1y
[nozzle-IAD2]
pattern = ^IAD2.adflow.nozzle.*
retentions = 30s:2d,5m:30d,30m:90d,1h:1y
[sitecounts-IAD2]
pattern = ^IAD2.adflow.sitecounts.*
retentions = 30s:2d,5m:30d,30m:90d,1h:1y
[video-IAD2]
pattern = ^IAD2.adflow.video.*
retentions = 30s:2d,5m:30d,30m:90d,1h:1y
[default_5min1w_30min1month_1h1yr]
pattern = ^Latisys.*|^Softlayer.*|^Viawest.*
retentions = 5m:1w,30m:30d,1h:1y
[data_counts_15c]
pattern = ^report.data_counts.*
retentions = 5m:2y
[data_counts_dfw2]
pattern = ^dfw2.report.data_counts.*
retentions = 5m:2y
xFilesFactor = 0.0
[verify_data_dfw2]
pattern = ^DFW2.report.verify_data.*
retentions = 5m:2y
xFilesFactor = 0.0
[tunnel-dfw2]
pattern = ^DFW2.fw3_dfw2_lijit_com.tunnels.*
retentions = 1m:1d,5m:30d,30m:90d,1h:1y
[cassandra_stats]
pattern = ^DFW2.report.cassandra_stats.*
retentions = 10m:1w,30m:30d,1h:1y
[statsd]
pattern = ^statsd.*
retentions = 1m:1d,5m:30d,30m:90d,1h:1y
[efpservice]
pattern = ^efpservice.*
retentions = 1m:1d,5m:30d,30m:90d,1h:1y
[nectar]
pattern = ^nectar.*
retentions = 1m:1d,5m:30d,30m:90d,1h:1y
[network]
pattern = ^network.*
retentions = 1m:1d,5m:30d,30m:90d,1h:1y
[data_integrations]
pattern = ^data_integrations.*
retentions = 1m:1d,5m:30d,30m:90d,1h:1y
[blackbird]
pattern = ^blackbird.*
retentions = 1m:1d,5m:30d,30m:90d,1h:1y
[loveboat]
pattern = ^loveboat.*
retentions = 1m:1d,5m:30d,30m:90d,1h:1y
[sauron]
pattern = ^sauron.*
retentions = 1m:1d,5m:30d,30m:90d,1h:1y
[carbon-relay-ng]
pattern = ^service_is_carbon-relay-ng.*
retentions = 10s:1d,5m:60d
[default]
pattern = .*
retentions = 5m:1w,30m:30d,1h:1y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment