To use the Pub/Sub service for metric collecting and processing, you should first
install Google Cloud Platform C++ Proto Libraries.
Pub/Sub support is also dependent on the dependencies of those libraries, like
Netdata should be re-installed from the source. The installer will detect that the required libraries are now available.
You cannot compile Netdata with Pub/Sub support enabled using
grpc1.32 or higher.
Some distributions don't have
.cmakefiles in packages. To build the C++ Proto Libraries on such distributions we advise you to delete
grpcrelated packages and install
grpcwith its dependencies from source.
To enable data sending to the Pub/Sub service, run
./edit-config exporting.conf in the Netdata configuration directory
and set the following options:
destination option to a Pub/Sub service endpoint.
pubsub.googleapis.com is the default one.
Next, create the credentials JSON file by following Google Cloud's authentication guide. The user running the Agent
netdata) needs read access to
google_cloud_credentials.json, which you can set with
chmod 400 google_cloud_credentials.json; chown netdata google_cloud_credentials.json. Set the
option to the full path of the file.