-
What Grafana version and what operating system are you using?
cloud version -
What are you trying to achieve?
see all windows operate such as networking, cpu, ram, log and so on -
How are you trying to achieve it?
use Alloy Agent -
What happened?
CPU usage, Disk reads/writes, Network traffic are not working -
What did you expect to happen?
it should show all these data, when i use Grafana Agent Static it is working all. -
Can you copy/paste the configuration(s) that you are having problems with?
prometheus.exporter.windows “integrations_windows_exporter” {
enabled_collectors = [“cpu”, “cs”, “logical_disk”, “net”, “os”, “service”, “system”, “textfile”, “time”, “diskdrive”]
}
discovery.relabel “integrations_windows_exporter” {
targets = prometheus.exporter.windows.integrations_windows_exporter.targetsrule {
target_label = “job”
replacement = “integrations/windows_exporter”
}rule {
target_label = “instance”
replacement = constants.hostname
}
}
prometheus.scrape “integrations_windows_exporter” {
targets = discovery.relabel.integrations_windows_exporter.output
forward_to = [prometheus.relabel.integrations_windows_exporter.receiver]
job_name = “integrations/windows_exporter”
}
prometheus.relabel “integrations_windows_exporter” {
forward_to = [prometheus.remote_write.metrics_service.receiver]rule {
source_labels = [“volume”]
regex = “HarddiskVolume.*”
action = “drop”
}rule {
action = “keep”
regex = “up|windows_cpu_interrupts_total|windows_cpu_time_total|windows_cs_hostname|windows_cs_logical_processors|windows_cs_physical_memory_bytes|windows_disk_drive_status|windows_logical_disk_avg_read_requests_queued|windows_logical_disk_avg_write_requests_queued|windows_logical_disk_free_bytes|windows_logical_disk_idle_seconds_total|windows_logical_disk_read_bytes_total|windows_logical_disk_read_seconds_total|windows_logical_disk_reads_total|windows_logical_disk_size_bytes|windows_logical_disk_write_bytes_total|windows_logical_disk_write_seconds_total|windows_logical_disk_writes_total|windows_net_bytes_received_total|windows_net_bytes_sent_total|windows_net_packets_outbound_discarded_total|windows_net_packets_outbound_errors_total|windows_net_packets_received_discarded_total|windows_net_packets_received_errors_total|windows_net_packets_received_unknown_total|windows_os_info|windows_os_paging_limit_bytes|windows_os_physical_memory_free_bytes|windows_os_timezone|windows_service_status|windows_system_context_switches_total|windows_system_processor_queue_length|windows_system_system_up_time|windows_time_computed_time_offset_seconds|windows_time_ntp_round_trip_delay_seconds”
source_labels = [“name”]
}
}
loki.process “logs_integrations_windows_exporter_application” {
forward_to = [loki.write.grafana_cloud_loki.receiver]
stage.json {
expressions = {
level = “levelText”,
source = “source”,
}
}
stage.labels {
values = {
level = “”,
source = “”,
}
}
}
loki.relabel “logs_integrations_windows_exporter_application” {
forward_to = [loki.process.logs_integrations_windows_exporter_application.receiver]
rule {
source_labels = [“computer”]
target_label = “agent_hostname”
}
}
loki.source.windowsevent “logs_integrations_windows_exporter_application” {
locale = 1033
eventlog_name = “Application”
bookmark_path = “./bookmarks-app.xml”
poll_interval = “0s”
use_incoming_timestamp = true
forward_to = [loki.relabel.logs_integrations_windows_exporter_application.receiver]
labels = {
instance = constants.hostname,
job = “integrations/windows_exporter”,
}
}
loki.process “logs_integrations_windows_exporter_system” {
forward_to = [loki.write.grafana_cloud_loki.receiver]
stage.json {
expressions = {
level = “levelText”,
source = “source”,
}
}
stage.labels {
values = {
level = “”,
source = “”,
}
}
}
loki.relabel “logs_integrations_windows_exporter_system” {
forward_to = [loki.process.logs_integrations_windows_exporter_system.receiver]
rule {
source_labels = [“computer”]
target_label = “agent_hostname”
}
}
loki.source.windowsevent “logs_integrations_windows_exporter_system” {
locale = 1033
eventlog_name = “System”
bookmark_path = “./bookmarks-sys.xml”
poll_interval = “0s”
use_incoming_timestamp = true
forward_to = [loki.relabel.logs_integrations_windows_exporter_system.receiver]
labels = {
instance = constants.hostname,
job = “integrations/windows_exporter”,
}
}
-
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
i don’t see any error. -
Did you follow any online instructions? If so, what is the URL?
don’t see fit solution.