sedai.monitoring_provider
Add CloudWatch monitoring to an account
Parameters
- account_id: The Sedai account id
- credentials: A valid AWS credentials object. Refer to :ref:
credentials
for more details - lb_dimensions: The list of load balancer dimensions. Default: ["load_balancer_name"]
- app_dimensions: The list of application dimensions. Default: ["application_id"]
- instance_dimensions: The list of instance dimensions. Default: ["instance_id"]
Returns
Boolean indicating if the monitoring provider was created successfully. If mandatory fields are missing, then an exception is raised.
Add GKE monitoring to an account
Parameters
- account_id: The account id
- project_id: The project id
- credentials: The GKE monitoring credentials. Refer to :ref:
credentials
for more details - name: An optional name for the monitoring provider
- lb_dimensions: The list of load balancer dimensions. Default: ["destination_service_name"]
- app_dimensions: The list of application dimensions. Default: ["application_id"]
- instance_dimensions: The list of instance dimensions. Default: ["pod_name"]
- region_dimensions: The list of region dimensions. Default: ["location"]
- container_dimensions: The list of container dimensions. Default: ["container_name"]
- namespace_dimensions: The list of namespace dimensions. Default: ["destination_service_namespace", "namespace_name"]
- cluster_dimensions: The list of cluster dimensions. Default: ["cluster_name"]
- integration_type: The integration type. Valid values are:
AGENTLESS
,AGENT_BASED
. Default:AGENT_BASED
Returns
Boolean indicating if the monitoring provider was created successfully. If mandatory fields are missing, then an exception is raised.
For the list of dimentsions, if the list is passed, then that list is used as is. If the list is not passed, the default list is used. If an empty list is passed, then no dimensions are used.
Add Datadog monitoring to an account
Parameters
- account_id: The account id
- credentials: The Datadog credentials. Refer to :ref:
credentials
for more details - name: An optional name for the monitoring provider
- lb_dimensions: The list of load balancer dimensions. Default: ["destination_service_name"]
- app_dimensions: The list of application dimensions. Default: ["application_id"]
- instance_dimensions: The list of instance dimensions. Default: ["pod_name"]
- region_dimensions: The list of region dimensions. Default: ["location"]
- container_dimensions: The list of container dimensions. Default: ["container_name"]
- namespace_dimensions: The list of namespace dimensions. Default: ["destination_service_namespace", "namespace_name"]
- cluster_dimensions: The list of cluster dimensions. Default: ["cluster_name"]
- az_dimensions: The list of availability zone dimensions. Default: ["availability_zone"]
- env_dimensions: The list of environment dimensions. Default: []
- instance_id_pattern: The instance id pattern. Default: None
- integration_type: The integration type. Valid values are:
AGENTLESS
,AGENT_BASED
. Default:AGENTLESS
Returns
Boolean indicating if the monitoring provider was created successfully. If mandatory fields are missing, then an exception is raised.
Add Federated Prometheus monitoring to an account
Parameters
- account_id: The account id
- credentials: The Federated Prometheus credentials. Refer to :ref:
credentials
for more details - endpoint: The Federated Prometheus endpoint.
- name: An optional name for the monitoring provider
- lb_dimensions: The list of load balancer dimensions. Default: ["service"]
- app_dimensions: The list of application dimensions. Default: ["application_id"]
- instance_dimensions: The list of instance dimensions. Default: ["pod"]
- region_dimensions: The list of region dimensions. Default: ["region"]
- container_dimensions: The list of container dimensions. Default: ["container"]
- namespace_dimensions: The list of namespace dimensions. Default: ["namespace"]
- cluster_dimensions: The list of cluster dimensions. Default: []
- az_dimensions: The list of availability zone dimensions. Default: ["availability_zone"]
- env_dimensions: The list of environment dimensions. Default: []
- instance_id_pattern: The instance id pattern. Default: None
- integration_type: The integration type. Valid values are:
AGENTLESS
,AGENT_BASED
. Default:AGENTLESS
Returns
Boolean indicating if the monitoring provider was created successfully. If mandatory fields are missing, then an exception is raised.