published on Tuesday, Jun 9, 2026 by Pulumiverse
published on Tuesday, Jun 9, 2026 by Pulumiverse
This resource requires the API token scopes Read settings (
settings.read) and Write settings (settings.write)
Dynatrace Documentation
Set monitoring rules at host level - https://www.dynatrace.com/support/help/how-to-use-dynatrace/process-groups/configuration/pg-monitoring#set-monitoring-rules-at-host-level
Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId:
builtin:host.process-groups.monitoring-state)
Export Example Usage
terraform-provider-dynatrace -export dynatrace.HostProcessGroupMonitoringdownloads all existing host level process group monitoring configuration
The full documentation of the export feature is available here.
Resource Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as dynatrace from "@pulumiverse/dynatrace";
const processGroup = dynatrace.getEntity({
entitySelector: "type(\"PROCESS_GROUP\")",
});
const monitoring = new dynatrace.HostProcessGroupMonitoring("monitoring", {
hostId: "HOST-1234567890000000",
monitoringState: "MONITORING_ON",
processGroup: processGroup.then(processGroup => processGroup.id),
});
import pulumi
import pulumi_dynatrace as dynatrace
import pulumiverse_dynatrace as dynatrace
process_group = dynatrace.get_entity(entity_selector="type(\"PROCESS_GROUP\")")
monitoring = dynatrace.HostProcessGroupMonitoring("monitoring",
host_id="HOST-1234567890000000",
monitoring_state="MONITORING_ON",
process_group=process_group.id)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-dynatrace/sdk/go/dynatrace"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
processGroup, err := dynatrace.GetEntity(ctx, &dynatrace.GetEntityArgs{
EntitySelector: pulumi.StringRef("type(\"PROCESS_GROUP\")"),
}, nil)
if err != nil {
return err
}
_, err = dynatrace.NewHostProcessGroupMonitoring(ctx, "monitoring", &dynatrace.HostProcessGroupMonitoringArgs{
HostId: pulumi.String("HOST-1234567890000000"),
MonitoringState: pulumi.String("MONITORING_ON"),
ProcessGroup: pulumi.String(pulumi.String(processGroup.Id)),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Dynatrace = Pulumiverse.Dynatrace;
return await Deployment.RunAsync(() =>
{
var processGroup = Dynatrace.GetEntity.Invoke(new()
{
EntitySelector = "type(\"PROCESS_GROUP\")",
});
var monitoring = new Dynatrace.HostProcessGroupMonitoring("monitoring", new()
{
HostId = "HOST-1234567890000000",
MonitoringState = "MONITORING_ON",
ProcessGroup = processGroup.Apply(getEntityResult => getEntityResult.Id),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dynatrace.DynatraceFunctions;
import com.pulumi.dynatrace.inputs.GetEntityArgs;
import com.pulumi.dynatrace.HostProcessGroupMonitoring;
import com.pulumi.dynatrace.HostProcessGroupMonitoringArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var processGroup = DynatraceFunctions.getEntity(GetEntityArgs.builder()
.entitySelector("type(\"PROCESS_GROUP\")")
.build());
var monitoring = new HostProcessGroupMonitoring("monitoring", HostProcessGroupMonitoringArgs.builder()
.hostId("HOST-1234567890000000")
.monitoringState("MONITORING_ON")
.processGroup(processGroup.id())
.build());
}
}
resources:
monitoring:
type: dynatrace:HostProcessGroupMonitoring
properties:
hostId: HOST-1234567890000000
monitoringState: MONITORING_ON
processGroup: ${processGroup.id}
variables:
processGroup:
fn::invoke:
function: dynatrace:getEntity
arguments:
entitySelector: type("PROCESS_GROUP")
pulumi {
required_providers {
dynatrace = {
source = "pulumi/dynatrace"
}
}
}
data "dynatrace_getentity" "processGroup" {
entity_selector = "type(\"PROCESS_GROUP\")"
}
resource "dynatrace_hostprocessgroupmonitoring" "monitoring" {
host_id = "HOST-1234567890000000"
monitoring_state = "MONITORING_ON"
process_group = data.dynatrace_getentity.processGroup.id
}
Create HostProcessGroupMonitoring Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HostProcessGroupMonitoring(name: string, args: HostProcessGroupMonitoringArgs, opts?: CustomResourceOptions);@overload
def HostProcessGroupMonitoring(resource_name: str,
args: HostProcessGroupMonitoringArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HostProcessGroupMonitoring(resource_name: str,
opts: Optional[ResourceOptions] = None,
host_id: Optional[str] = None,
monitoring_state: Optional[str] = None,
process_group: Optional[str] = None)func NewHostProcessGroupMonitoring(ctx *Context, name string, args HostProcessGroupMonitoringArgs, opts ...ResourceOption) (*HostProcessGroupMonitoring, error)public HostProcessGroupMonitoring(string name, HostProcessGroupMonitoringArgs args, CustomResourceOptions? opts = null)
public HostProcessGroupMonitoring(String name, HostProcessGroupMonitoringArgs args)
public HostProcessGroupMonitoring(String name, HostProcessGroupMonitoringArgs args, CustomResourceOptions options)
type: dynatrace:HostProcessGroupMonitoring
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "dynatrace_hostprocessgroupmonitoring" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args HostProcessGroupMonitoringArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args HostProcessGroupMonitoringArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args HostProcessGroupMonitoringArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HostProcessGroupMonitoringArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HostProcessGroupMonitoringArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var hostProcessGroupMonitoringResource = new Dynatrace.HostProcessGroupMonitoring("hostProcessGroupMonitoringResource", new()
{
HostId = "string",
MonitoringState = "string",
ProcessGroup = "string",
});
example, err := dynatrace.NewHostProcessGroupMonitoring(ctx, "hostProcessGroupMonitoringResource", &dynatrace.HostProcessGroupMonitoringArgs{
HostId: pulumi.String("string"),
MonitoringState: pulumi.String("string"),
ProcessGroup: pulumi.String("string"),
})
resource "dynatrace_hostprocessgroupmonitoring" "hostProcessGroupMonitoringResource" {
host_id = "string"
monitoring_state = "string"
process_group = "string"
}
var hostProcessGroupMonitoringResource = new HostProcessGroupMonitoring("hostProcessGroupMonitoringResource", HostProcessGroupMonitoringArgs.builder()
.hostId("string")
.monitoringState("string")
.processGroup("string")
.build());
host_process_group_monitoring_resource = dynatrace.HostProcessGroupMonitoring("hostProcessGroupMonitoringResource",
host_id="string",
monitoring_state="string",
process_group="string")
const hostProcessGroupMonitoringResource = new dynatrace.HostProcessGroupMonitoring("hostProcessGroupMonitoringResource", {
hostId: "string",
monitoringState: "string",
processGroup: "string",
});
type: dynatrace:HostProcessGroupMonitoring
properties:
hostId: string
monitoringState: string
processGroup: string
HostProcessGroupMonitoring Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The HostProcessGroupMonitoring resource accepts the following input properties:
- Host
Id string - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- Monitoring
State string - Possible Values:
DEFAULT,MONITORING_OFF,MONITORING_ON - Process
Group string - Process group
- Host
Id string - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- Monitoring
State string - Possible Values:
DEFAULT,MONITORING_OFF,MONITORING_ON - Process
Group string - Process group
- host_
id string - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- monitoring_
state string - Possible Values:
DEFAULT,MONITORING_OFF,MONITORING_ON - process_
group string - Process group
- host
Id String - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- monitoring
State String - Possible Values:
DEFAULT,MONITORING_OFF,MONITORING_ON - process
Group String - Process group
- host
Id string - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- monitoring
State string - Possible Values:
DEFAULT,MONITORING_OFF,MONITORING_ON - process
Group string - Process group
- host_
id str - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- monitoring_
state str - Possible Values:
DEFAULT,MONITORING_OFF,MONITORING_ON - process_
group str - Process group
- host
Id String - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- monitoring
State String - Possible Values:
DEFAULT,MONITORING_OFF,MONITORING_ON - process
Group String - Process group
Outputs
All input properties are implicitly available as output properties. Additionally, the HostProcessGroupMonitoring resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing HostProcessGroupMonitoring Resource
Get an existing HostProcessGroupMonitoring resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: HostProcessGroupMonitoringState, opts?: CustomResourceOptions): HostProcessGroupMonitoring@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
host_id: Optional[str] = None,
monitoring_state: Optional[str] = None,
process_group: Optional[str] = None) -> HostProcessGroupMonitoringfunc GetHostProcessGroupMonitoring(ctx *Context, name string, id IDInput, state *HostProcessGroupMonitoringState, opts ...ResourceOption) (*HostProcessGroupMonitoring, error)public static HostProcessGroupMonitoring Get(string name, Input<string> id, HostProcessGroupMonitoringState? state, CustomResourceOptions? opts = null)public static HostProcessGroupMonitoring get(String name, Output<String> id, HostProcessGroupMonitoringState state, CustomResourceOptions options)resources: _: type: dynatrace:HostProcessGroupMonitoring get: id: ${id}import {
to = dynatrace_hostprocessgroupmonitoring.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Host
Id string - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- Monitoring
State string - Possible Values:
DEFAULT,MONITORING_OFF,MONITORING_ON - Process
Group string - Process group
- Host
Id string - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- Monitoring
State string - Possible Values:
DEFAULT,MONITORING_OFF,MONITORING_ON - Process
Group string - Process group
- host_
id string - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- monitoring_
state string - Possible Values:
DEFAULT,MONITORING_OFF,MONITORING_ON - process_
group string - Process group
- host
Id String - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- monitoring
State String - Possible Values:
DEFAULT,MONITORING_OFF,MONITORING_ON - process
Group String - Process group
- host
Id string - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- monitoring
State string - Possible Values:
DEFAULT,MONITORING_OFF,MONITORING_ON - process
Group string - Process group
- host_
id str - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- monitoring_
state str - Possible Values:
DEFAULT,MONITORING_OFF,MONITORING_ON - process_
group str - Process group
- host
Id String - The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
- monitoring
State String - Possible Values:
DEFAULT,MONITORING_OFF,MONITORING_ON - process
Group String - Process group
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatraceTerraform Provider.
published on Tuesday, Jun 9, 2026 by Pulumiverse