cp-docker-images icon indicating copy to clipboard operation
cp-docker-images copied to clipboard

Set Support Metrics to false

Open Fobhep opened this issue 7 years ago • 6 comments

Hi! Can anybody tell me, whether there is an option to set the support metrics for kafka to false upon the start of a kafka docker container?

The confluent.support.metrics.enable variable lives in a different location than the variables I can set via KAFKA_XYZ_.... environment variables, namely the server settings.

I tried to trigger it via SERVER_CONFLUENT_SUPPORT_METRICS_ENABLE=false but that did not have any consequences. As far as I understood the source code of the docker image there is also no way for that to work.

So any suggestions? Or did I maybe miss something?

Fobhep avatar Nov 23 '17 15:11 Fobhep

Try: CONFLUENT_SUPPORT_METRICS_ENABLE: 0

Seems to work for me: WARN The support metrics collection feature ("Metrics") of Proactive Support is disabled. (io.confluent.support.metrics.SupportedServerStartable)

rafenden avatar Dec 03 '18 14:12 rafenden

This should have been disabled by default

lssilva avatar Jun 12 '19 16:06 lssilva

CONFLUENT_SUPPORT_METRICS_ENABLE: 0

It isn't working for me 🤷‍♂ I can enter the container and it's still enabled:

$ cat /etc/kafka/server.properties | grep metrics.enable
confluent.support.metrics.enable=true

Kafka container log confirms it: WARN Please note that the support metrics collection feature ("Metrics") of Proactive Support is enabled.

andreportela avatar Aug 22 '19 15:08 andreportela

KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE=false does the trick 👍

andreportela avatar Aug 27 '19 19:08 andreportela

This actually worked for me KSQL_OPTS: "-Dconfluent.support.metrics.enable=false"

I found the information here: https://docs.confluent.io/current/ksql/docs/installation/server-config/index.html#ksql-opts-environment-variable

logs went from:

2019-11-27 07:28:04,584] INFO Started @8490ms (org.eclipse.jetty.server.Server:408)
[2019-11-27 07:28:04,585] WARN Writing to metrics Kafka topic will be disabled (io.confluent.support.metrics.PhoneHomeConfig:61)
[2019-11-27 07:28:04,585] INFO No customer ID configured -- falling back to id 'anonymous' (io.confluent.support.metrics.BaseSupportConfig:342)
[2019-11-27 07:28:04,585] WARN Enforcing customer ID 'anonymous' (io.confluent.support.metrics.PhoneHomeConfig:66)
[2019-11-27 07:28:04,596] WARN Please note that the version check feature of KSQL is enabled.  With this enabled, this instance is configured to collect and report anonymously the version information to Confluent, Inc. ("Confluent") or its parent, subsidiaries, affiliates or service providers every 24hours.  This Metadata may be transferred to any country in which Confluent maintains facilities.  For a more in depth discussion of how Confluent processes such information, please read our Privacy Policy located at http://www.confluent.io/privacy. By proceeding with `confluent.support.metrics.enable=true`, you agree to all such collection, transfer and use of Version information by Confluent. You can turn the version check  feature off by setting `confluent.support.metrics.enable=false` in the KSQL configuration and restarting the KSQL.  See the Confluent Platform documentation for further information. (io.confluent.ksql.version.metrics.KsqlVersionCheckerAgent:89)
[2019-11-27 07:28:04,596] INFO Waiting until monitored service is ready for metrics collection (io.confluent.support.metrics.BaseMetricsReporter:197)
[2019-11-27 07:28:04,596] INFO Monitored service is now ready (io.confluent.support.metrics.BaseMetricsReporter:208)
[2019-11-27 07:28:04,597] INFO Attempting to collect and submit metrics (io.confluent.support.metrics.BaseMetricsReporter:168)
[2019-11-27 07:28:04,597] INFO Server up and running (io.confluent.ksql.rest.server.KsqlServerMain:59)
[2019-11-27 07:28:05,400] INFO Successfully submitted metrics to Confluent via secure endpoint (io.confluent.support.metrics.submitters.ConfluentSubmitter:149)

to the following:

2019-11-27 07:22:52,310] INFO Started @8450ms (org.eclipse.jetty.server.Server:408)
[2019-11-27 07:22:52,311] WARN Writing to metrics Kafka topic will be disabled (io.confluent.support.metrics.PhoneHomeConfig:61)
[2019-11-27 07:22:52,311] INFO No customer ID configured -- falling back to id 'anonymous' (io.confluent.support.metrics.BaseSupportConfig:342)
[2019-11-27 07:22:52,311] WARN Enforcing customer ID 'anonymous' (io.confluent.support.metrics.PhoneHomeConfig:66)
[2019-11-27 07:22:52,311] WARN The version check feature of KSQL  is disabled. (io.confluent.ksql.version.metrics.KsqlVersionCheckerAgent:72)
[2019-11-27 07:22:52,312] INFO Server up and running (io.confluent.ksql.rest.server.KsqlServerMain:59)

Cyb3rWard0g avatar Nov 27 '19 07:11 Cyb3rWard0g

How do I actually view metrics for a kafka container? i.e (one built using the image confluentinc/cp-kafka:6.1.0)

AyushmatiGit avatar Feb 18 '21 13:02 AyushmatiGit