...

Text file src/edge-infra.dev/cmd/edge/monitoring/dsp/README

Documentation: edge-infra.dev/cmd/edge/monitoring/dsp

     1This utility tool is used to help DSP test how they handle alert notifications by creating and sending a message via Pub/Sub. There are three required flags
     2(project, topic, and policyName) and two optional flags (labels and encode). The input of the project flag must begin with "ret-edge" to follow the required pattern. 
     3Additionally, labels are a list of "key|value" pairs separated by commas. The tool will base64 encode the created message, but can be turned off by setting the 
     4encode flag to false.
     5
     6An example of how to run it, with all flags populated is listed below, where the project name is "ret-edge-o11y-sandbox", the Pub/Sub topic is "alert-test", the name
     7of the alert policy is "Fluentbit Throttle Active", and the labels are "cluster|testcluster,location|us-east-2a". To not encode the resulting message, the user can
     8add -e false to the query.
     9
    10bazel run cmd/edge/monitoring/dsp -- create -p ret-edge-o11y-sandbox -t alert-test -n "Fluentbit Throttle Active" -l "cluster|testcluster,location|us-east-2a"

View as plain text