-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dab0e9f
commit 7c1ee4c
Showing
16 changed files
with
197 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
# tbauriedel.gocarbon | ||
|
||
Installs and configures [go-carbon](https://github.com/go-graphite/go-carbon). | ||
|
||
## Variables | ||
|
||
A detailed documentation can be found inside of the [official go-carbon repo](https://github.com/go-graphite/go-carbon?tab=readme-ov-file#configuration). | ||
|
||
Default variables are defined [here](defaults/main.yml). | ||
|
||
`gocarbon_version`: Version (Default: `0.17.3`) | ||
`gocarbon_storage_dir`: Storage directory (Default: `/var/lib/graphite`) | ||
`gocarbon_group`: Service user (Default: `carbon`) | ||
`gocarbon_user`: Service group (Default: `carbon`) | ||
|
||
`gocarbon_max_cpu`: Max CPU (Default: `1`) | ||
`gocarbon_whisper_workers`: Max workers (Default: `1`) | ||
`gocarbon_cache_max_size`: Max cache size (Default: `1000000`) | ||
`gocarbon_udp_enabled`: Enable udp listener (Default: `true`) | ||
`gocarbon_upd_listen`: UDP listener (Default: `127.0.0.1:2003`) | ||
`gocarbon_tcp_enabled`: Enable TCP listener (Default: `true`) | ||
`gocarbon_tcp_listen`: TCP listener (Default: `127.0.0.1:2003`) | ||
`gocarbon_carbonlink_enabled`: Enable carbonlink listener (Default: `true`) | ||
`gocarbon_carbonlink_listen`: carbonlink listener (Default: `127.0.0.1:7200`) | ||
`gocarbon_pickle_enabled`: Enable pickle listener (Default: `true`) | ||
`gocarbon_pickle_listen`: pickle listener (Default: `127.0.0.1:2004`) | ||
`gocarbon_carbonserver_enabled`: Enable carbonserver (Default: `true`) | ||
`gocarbon_carbonserver_listen`: carbonserver listener: (Default: `127.0.0.1:8080`) | ||
|
||
`gocarbon_logging_file`: Logfile (Default: `/var/log/go-carbon/go-carbon.log`) | ||
`gocarbon_logging_severity`: Log severity (Default: `warn`) | ||
|
||
`gocarbon_extra_conf:` Add some extra custom configuration | ||
|
||
`gocarbon_storage_schemas`: List of storage retentions (Default: [here](defaults/main.yml)) | ||
`gocarbon_storage_schemas.name`: Name of schema | ||
`gocarbon_storage_schemas.pattern`: Pattern that should match | ||
`gocarbon_storage_schemas.retentions`: Retention policy | ||
`gocarbon_storage_schemas.compressed`: Enable compression (Default: `false`) | ||
|
||
`gocarbon_storage_aggregation`: Add storage aggregation | ||
|
||
## Config file | ||
|
||
If you dont add some custom configuration, the go-carbon.conf will look like this. | ||
``` | ||
# | ||
# Ansible managed | ||
# | ||
[common] | ||
user = "carbon" | ||
graph-prefix = "carbon.agents.{host}" | ||
metric-endpoint = "local" | ||
max-cpu = 1 | ||
metric-interval = "1m0s" | ||
[whisper] | ||
data-dir = "/var/lib/graphite/whisper/" | ||
schemas-file = "/etc/go-carbon/storage-schemas.conf" | ||
aggregation-file = "" | ||
quotas-file = "" | ||
workers = 1 | ||
max-updates-per-second = 0 | ||
sparse-create = false | ||
physical-size-factor = 0.75 | ||
flock = false | ||
compressed = false | ||
enabled = true | ||
hash-filenames = true | ||
remove-empty-file = false | ||
online-migration = false | ||
online-migration-rate = 5 | ||
online-migration-global-scope = "" | ||
[cache] | ||
max-size = 1000000 | ||
write-strategy = "max" | ||
[carbonserver] | ||
listen = "127.0.0.1:8080" | ||
enabled = true | ||
[udp] | ||
listen = "127.0.0.1:2003" | ||
enabled = true | ||
buffer-size = 0 | ||
[tcp] | ||
listen = "127.0.0.1:2003" | ||
enabled = true | ||
buffer-size = 0 | ||
compression = "" | ||
[carbonlink] | ||
listen = "127.0.0.1:7200" | ||
enabled = true | ||
read-timeout = "30s" | ||
[pickle] | ||
listen = "127.0.0.1:2004" | ||
max-message-size = 67108864 | ||
enabled = true | ||
buffer-size = 0 | ||
[[logging]] | ||
logger = "" | ||
file = "/var/log/go-carbon/go-carbon.log" | ||
level = "warn" | ||
encoding = "mixed" | ||
encoding-time = "iso8601" | ||
encoding-duration = "seconds" | ||
sample-tick = "" | ||
sample-initial = 0 | ||
sample-thereafter = 0 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
gocarbon_version: 0.17.3 | ||
|
||
gocarbon_storage_dir: /var/lib/graphite | ||
gocarbon_group: carbon | ||
gocarbon_user: carbon | ||
|
||
gocarbon_max_cpu: 1 | ||
gocarbon_metric_interval: 1m0s | ||
gocarbon_whisper_workers: 1 | ||
gocarbon_cache_max_size: 1000000 | ||
gocarbon_udp_enabled: "true" | ||
gocarbon_upd_listen: 127.0.0.1:2003 | ||
gocarbon_tcp_enabled: "true" | ||
gocarbon_tcp_listen: 127.0.0.1:2003 | ||
gocarbon_carbonlink_enabled: "true" | ||
gocarbon_carbonlink_listen: 127.0.0.1:7200 | ||
gocarbon_pickle_enabled: "true" | ||
gocarbon_pickle_listen: 127.0.0.1:2004 | ||
gocarbon_carbonserver_enabled: "true" | ||
gocarbon_carbonserver_listen: 127.0.0.1:8080 | ||
|
||
gocarbon_logging_file: /var/log/go-carbon/go-carbon.log | ||
gocarbon_logging_severity: warn | ||
|
||
gocarbon_extra_conf: "" | ||
|
||
gocarbon_storage_schemas: | ||
- name: default | ||
pattern: .* | ||
retentions: 60s:30d,1h:5y | ||
compressed: "false" | ||
|
||
gocarbon_storage_aggregation: "" |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.