Skip to content

Commit

Permalink
Add config option to disable statsd metrics on api vms (#375)
Browse files Browse the repository at this point in the history
When the newly introduced config option enable_statsd_metrics is set to
false, metrics will be send via prometheus only on api vms. The default
is true, in this case metrics are send via statsd and prometheus.
  • Loading branch information
kathap authored Jan 22, 2024
1 parent dba1ffc commit ab4261c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jobs/cloud_controller_ng/spec
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ provides:
- cc.staging_upload_user
- cc.statsd_host
- cc.statsd_port
- cc.enable_statsd_metrics
- cc.system_hostnames
- cc.tls_port
- cc.uaa.client_timeout
Expand Down Expand Up @@ -980,6 +981,10 @@ properties:
description: "The port for the statsd server, defaults to the local metron agent"
default: 8125

cc.enable_statsd_metrics:
description: "Use statsd metrics on api vms."
default: true

router.route_services_secret:
description: "Support for route services is disabled when no value is configured."
default: ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ allowed_cors_domains: <%= p("cc.allowed_cors_domains").to_json %>

statsd_host: <%= p("cc.statsd_host") %>
statsd_port: <%= p("cc.statsd_port") %>
enable_statsd_metrics: <%= p("cc.enable_statsd_metrics") %>

security_event_logging:
enabled: <%= p("cc.security_event_logging.enabled") %>
Expand Down

0 comments on commit ab4261c

Please sign in to comment.