// This file is autogenerated, DO NOT EDIT
// monitoring/production.asciidoc:52

[source, python]
----
resp = client.cluster.get_settings()
print(resp)

resp1 = client.cluster.put_settings(
    persistent={
        "xpack.monitoring.collection.enabled": False
    },
)
print(resp1)
----
