categraf无法正常test inputs tomcat

Viewed 53

categraf.exe --test inputs tomcat
2023/05/30 17:23:13 I! tracing disabled
2023/05/30 17:23:13 main.go:128: I! runner.binarydir: C:\categraf-v0.3.5-windows-amd64
2023/05/30 17:23:13 main.go:129: I! runner.hostname: WIN-Q596Q8ETBGG
2023/05/30 17:23:13 main.go:130: I! runner.fd_limits: N/A
2023/05/30 17:23:13 main.go:131: I! runner.vm_limits: N/A
2023/05/30 17:23:13 provider_manager.go:61: I! use input provider: [local]
2023/05/30 17:23:13 traces_agent.go:19: I! traces agent disabled!
2023/05/30 17:23:13 prometheus_agent.go:19: I! prometheus scraping disabled!
2023/05/30 17:23:13 ibex_agent.go:19: I! ibex agent disabled!
2023/05/30 17:23:13 agent.go:39: I! agent starting
2023/05/30 17:23:13 metrics_agent.go:211: E! input: local.arp_packet not supported
2023/05/30 17:23:13 metrics_agent.go:271: I! input: local.cpu started
2023/05/30 17:23:13 metrics_agent.go:271: I! input: local.disk started
17:23:13 disk_free agent_hostname=10.230 device=C: fstype=NTFS mode=rw path=\C: 210740219904
2023/05/30 17:23:13 metrics_agent.go:271: I! input: local.diskio started
17:23:13 disk_used agent_hostname=10.230 device=C: fstype=NTFS mode=rw path=\C: 111383371776
17:23:13 diskio_io_time agent_hostname=10.230 name=C: 0
17:23:13 disk_used_percent agent_hostname=10.230 device=C: fstype=NTFS mode=rw path=\C: 34.57783740554125
17:23:13 disk_inodes_total agent_hostname=10.230 device=C: fstype=NTFS mode=rw path=\C: 0
2023/05/30 17:23:13 metrics_agent.go:271: I! input: local.greenplum started
17:23:13 disk_inodes_free agent_hostname=10.230 device=C: fstype=NTFS mode=rw path=\C: 0
17:23:13 disk_inodes_used agent_hostname=10.230 device=C: fstype=NTFS mode=rw path=\C: 0
2023/05/30 17:23:13 metrics_agent.go:271: I! input: local.mem started
17:23:13 disk_device_error agent_hostname=10.230 device=C: fstype=NTFS mode=rw path=\C: 0
17:23:13 disk_total agent_hostname=10.230 device=C: fstype=NTFS mode=rw path=\C: 322123591680
17:23:13 disk_total agent_hostname=10.230 device=D: fstype=NTFS mode=rw path=\D: 677631430656
2023/05/30 17:23:13 metrics_agent.go:271: I! input: local.net started
17:23:13 diskio_weighted_io_time agent_hostname=10.230 name=C: 0
2023/05/30 17:23:13 metrics_agent.go:271: I! input: local.netstat started
17:23:13 mem_total agent_hostname=10.230 25597894656
2023/05/30 17:23:13 netstat.go:57: W! netstat_summary is only supported on linux
17:23:13 mem_available agent_hostname=10.230 7457251328
2023/05/30 17:23:13 metrics_agent.go:211: E! input: local.processes not supported
17:23:13 mem_used agent_hostname=10.230 18140643328
17:23:13 diskio_iops_in_progress agent_hostname=10.230 name=C: 0
17:23:13 disk_free agent_hostname=10.230 device=D: fstype=NTFS mode=rw path=\D: 314713292800
17:23:13 disk_used agent_hostname=10.230 device=D: fstype=NTFS mode=rw path=\D: 362918137856
2023/05/30 17:23:13 metrics_agent.go:271: I! input: local.self_metrics started
17:23:13 disk_used_percent agent_hostname=10.230 device=D: fstype=NTFS mode=rw path=\D: 53.556863132022514
17:23:13 disk_inodes_total agent_hostname=10.230 device=D: fstype=NTFS mode=rw path=\D: 0
2023/05/30 17:23:13 metrics_agent.go:271: I! input: local.sockstat started
17:23:13 net_packets_recv agent_hostname=10.230 interface=以太网 1137717
2023/05/30 17:23:13 metrics_agent.go:271: I! input: local.system started
17:23:13 net_err_in agent_hostname=10.230 interface=以太网 0
2023/05/30 17:23:13 metrics_agent.go:271: I! input: local.systemd started
17:23:13 net_err_out agent_hostname=10.230 interface=以太网 0
17:23:13 net_drop_in agent_hostname=10.230 interface=以太网 0
2023/05/30 17:23:13 metrics_agent.go:271: I! input: local.tomcat started
17:23:13 net_bits_sent agent_hostname=10.230 interface=以太网 6553677072
2023/05/30 17:23:13 agent.go:47: I! [*agent.MetricsAgent] started
17:23:13 net_bytes_recv agent_hostname=10.230 interface=以太网 583152813
2023/05/30 17:23:13 agent.go:50: I! agent started
17:23:13 net_bits_recv agent_hostname=10.230 interface=以太网 4665222504
2023/05/30 17:23:13 tomcat.go:178: E! received HTTP status code: 404 expected: 200
17:23:13 net_packets_sent agent_hostname=10.230 interface=以太网 3139931
17:23:13 net_drop_out agent_hostname=10.230 interface=以太网 0
17:23:13 disk_inodes_free agent_hostname=10.230 device=D: fstype=NTFS mode=rw path=\D: 0
17:23:13 system_load5 agent_hostname=10.230 0
17:23:13 categraf_info agent_hostname=10.230 version=v0.3.5-08405fb022043f889844a1ca2e85a0b143eb4d04 1
17:23:13 mem_used_percent agent_hostname=10.230 70.86771616097708
17:23:13 tomcat_up agent_hostname=10.230 url=http://127.0.0.1:8900/manager/status/all?XML=true 0
17:23:13 diskio_read_bytes agent_hostname=10.230 name=C: 246128128
17:23:13 net_bytes_sent agent_hostname=10.230 interface=以太网 819209634
17:23:13 disk_inodes_used agent_hostname=10.230 device=D: fstype=NTFS mode=rw path=\D: 0
17:23:13 system_load15 agent_hostname=10.230 0
17:23:13 categraf_go_gc_duration_seconds_count agent_hostname=10.230 5
17:23:13 mem_available_percent agent_hostname=10.230 29.13228383902292
17:23:13 tomcat_scrape_use_seconds agent_hostname=10.230 url=http://127.0.0.1:8900/manager/status/all?XML=true 0.005013
17:23:13 diskio_write_bytes agent_hostname=10.230 name=C: 358879232
17:23:13 disk_device_error agent_hostname=10.230 device=D: fstype=NTFS mode=rw path=\D: 0
17:23:13 system_n_cpus agent_hostname=10.230 4
17:23:13 categraf_go_gc_duration_seconds_sum agent_hostname=10.230 0.0010311
17:23:13 diskio_read_time agent_hostname=10.230 name=C: 61
17:23:13 system_load_norm_1 agent_hostname=10.230 0
17:23:13 categraf_go_gc_duration_seconds agent_hostname=10.230 quantile=0 0
17:23:13 diskio_write_time agent_hostname=10.230 name=C: 90
17:23:13 system_load_norm_5 agent_hostname=10.230 0
17:23:13 categraf_go_gc_duration_seconds agent_hostname=10.230 quantile=0.25 0
17:23:13 diskio_merged_reads agent_hostname=10.230 name=C: 0
17:23:13 system_load_norm_15 agent_hostname=10.230 0
17:23:13 categraf_go_gc_duration_seconds agent_hostname=10.230 quantile=0.5 0
17:23:13 diskio_merged_writes agent_hostname=10.230 name=C: 0
17:23:13 system_uptime agent_hostname=10.230 10570590
17:23:13 categraf_go_gc_duration_seconds agent_hostname=10.230 quantile=0.75 0
17:23:13 diskio_reads agent_hostname=10.230 name=C: 11792
17:23:13 system_load1 agent_hostname=10.230 0
17:23:13 categraf_go_gc_duration_seconds agent_hostname=10.230 quantile=1 0.0010311
17:23:13 diskio_writes agent_hostname=10.230 name=C: 50184
17:23:13 categraf_go_goroutines agent_hostname=10.230 17
17:23:13 diskio_merged_reads agent_hostname=10.230 name=D: 0
17:23:13 categraf_go_info agent_hostname=10.230 version=go1.19.9 1
17:23:13 diskio_reads agent_hostname=10.230 name=D: 3947
17:23:13 categraf_go_memstats_alloc_bytes agent_hostname=10.230 1.1467144e+07
17:23:13 diskio_write_bytes agent_hostname=10.230 name=D: 7845335040
17:23:13 diskio_read_time agent_hostname=10.230 name=D: 55
17:23:13 categraf_go_memstats_alloc_bytes_total agent_hostname=10.230 2.0254808e+07
17:23:13 diskio_write_time agent_hostname=10.230 name=D: 114
17:23:13 categraf_go_memstats_buck_hash_sys_bytes agent_hostname=10.230 1.464826e+06
17:23:13 diskio_io_time agent_hostname=10.230 name=D: 0
17:23:13 categraf_go_memstats_frees_total agent_hostname=10.230 74051
17:23:13 categraf_go_memstats_gc_sys_bytes agent_hostname=10.230 8.266568e+06
17:23:13 categraf_go_memstats_heap_alloc_bytes agent_hostname=10.230 1.1467144e+07
17:23:13 categraf_go_memstats_heap_idle_bytes agent_hostname=10.230 1.908736e+06
17:23:13 categraf_go_memstats_heap_inuse_bytes agent_hostname=10.230 1.4442496e+07
17:23:13 categraf_go_memstats_heap_objects agent_hostname=10.230 55106
17:23:13 categraf_go_memstats_heap_released_bytes agent_hostname=10.230 1.466368e+06
17:23:13 categraf_go_memstats_heap_sys_bytes agent_hostname=10.230 1.6351232e+07
17:23:13 categraf_go_memstats_last_gc_time_seconds agent_hostname=10.230 1.6854385935111566e+09
17:23:13 categraf_go_memstats_lookups_total agent_hostname=10.230 0
17:23:13 categraf_go_memstats_mallocs_total agent_hostname=10.230 129157
17:23:13 categraf_go_memstats_mcache_inuse_bytes agent_hostname=10.230 4672
17:23:13 categraf_go_memstats_mcache_sys_bytes agent_hostname=10.230 16352
17:23:13 categraf_go_memstats_mspan_inuse_bytes agent_hostname=10.230 164736
17:23:13 categraf_go_memstats_mspan_sys_bytes agent_hostname=10.230 178992
17:23:13 categraf_go_memstats_next_gc_bytes agent_hostname=10.230 2.1906176e+07
17:23:13 categraf_go_memstats_other_sys_bytes agent_hostname=10.230 881638
17:23:13 categraf_go_memstats_stack_inuse_bytes agent_hostname=10.230 425984
17:23:13 categraf_go_memstats_stack_sys_bytes agent_hostname=10.230 425984
17:23:13 categraf_go_memstats_sys_bytes agent_hostname=10.230 2.7585592e+07
17:23:13 categraf_go_threads agent_hostname=10.230 10
17:23:13 categraf_process_cpu_seconds_total agent_hostname=10.230 0.09375
17:23:13 categraf_process_max_fds agent_hostname=10.230 1.6777216e+07
17:23:13 categraf_process_open_fds agent_hostname=10.230 100
17:23:13 categraf_process_resident_memory_bytes agent_hostname=10.230 4.9803264e+07
17:23:13 categraf_process_start_time_seconds agent_hostname=10.230 1.685438593e+09
17:23:13 categraf_process_virtual_memory_bytes agent_hostname=10.230 3.823616e+07
17:23:13 categraf_prometheus_remote_storage_exemplars_in_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_remote_storage_samples_in_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_remote_storage_string_interner_zero_reference_releases_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_sd_azure_failures_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_sd_consul_rpc_duration_seconds_count agent_hostname=10.230 call=service endpoint=catalog 0
17:23:13 categraf_prometheus_sd_consul_rpc_duration_seconds_sum agent_hostname=10.230 call=service endpoint=catalog 0
17:23:13 categraf_prometheus_sd_consul_rpc_duration_seconds agent_hostname=10.230 call=service endpoint=catalog quantile=0.5 NaN
17:23:13 categraf_prometheus_sd_consul_rpc_duration_seconds agent_hostname=10.230 call=service endpoint=catalog quantile=0.9 NaN
17:23:13 categraf_prometheus_sd_consul_rpc_duration_seconds agent_hostname=10.230 call=service endpoint=catalog quantile=0.99 NaN
17:23:13 categraf_prometheus_sd_consul_rpc_duration_seconds_count agent_hostname=10.230 call=services endpoint=catalog 0
17:23:13 categraf_prometheus_sd_consul_rpc_duration_seconds_sum agent_hostname=10.230 call=services endpoint=catalog 0
17:23:13 diskio_weighted_io_time agent_hostname=10.230 name=D: 0
17:23:13 categraf_prometheus_sd_consul_rpc_duration_seconds agent_hostname=10.230 call=services endpoint=catalog quantile=0.5 NaN
17:23:13 categraf_prometheus_sd_consul_rpc_duration_seconds agent_hostname=10.230 call=services endpoint=catalog quantile=0.9 NaN
17:23:13 categraf_prometheus_sd_consul_rpc_duration_seconds agent_hostname=10.230 call=services endpoint=catalog quantile=0.99 NaN
17:23:13 categraf_prometheus_sd_consul_rpc_failures_total agent_hostname=10.230 0
17:23:13 diskio_iops_in_progress agent_hostname=10.230 name=D: 0
17:23:13 categraf_prometheus_sd_dns_lookup_failures_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_sd_dns_lookups_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_sd_file_read_errors_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_sd_file_scan_duration_seconds_count agent_hostname=10.230 0
17:23:13 categraf_prometheus_sd_file_scan_duration_seconds_sum agent_hostname=10.230 0
17:23:13 categraf_prometheus_sd_file_scan_duration_seconds agent_hostname=10.230 quantile=0.5 NaN
17:23:13 categraf_prometheus_sd_file_scan_duration_seconds agent_hostname=10.230 quantile=0.9 NaN
17:23:13 categraf_prometheus_sd_file_scan_duration_seconds agent_hostname=10.230 quantile=0.99 NaN
17:23:13 categraf_prometheus_sd_http_failures_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=add role=endpoints 0
17:23:13 diskio_writes agent_hostname=10.230 name=D: 55781
17:23:13 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=add role=endpointslice 0
17:23:13 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=add role=ingress 0
17:23:13 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=add role=node 0
17:23:13 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=add role=pod 0
17:23:13 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=add role=service 0
17:23:13 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=delete role=endpoints 0
17:23:13 diskio_read_bytes agent_hostname=10.230 name=D: 121039872
17:23:13 diskio_merged_writes agent_hostname=10.230 name=D: 0
17:23:13 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=delete role=endpointslice 0
17:23:13 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=delete role=ingress 0
17:23:13 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=delete role=node 0
17:23:13 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=delete role=pod 0
17:23:13 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=delete role=service 0
17:23:13 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=update role=endpoints 0
17:23:13 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=update role=endpointslice 0
17:23:13 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=update role=ingress 0
17:23:13 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=update role=node 0
17:23:13 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=update role=pod 0
17:23:13 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=update role=service 0
17:23:13 categraf_prometheus_sd_kuma_fetch_duration_seconds_count agent_hostname=10.230 0
17:23:13 categraf_prometheus_sd_kuma_fetch_duration_seconds_sum agent_hostname=10.230 0
17:23:13 categraf_prometheus_sd_kuma_fetch_duration_seconds agent_hostname=10.230 quantile=0.5 NaN
17:23:13 categraf_prometheus_sd_kuma_fetch_duration_seconds agent_hostname=10.230 quantile=0.9 NaN
17:23:13 categraf_prometheus_sd_kuma_fetch_duration_seconds agent_hostname=10.230 quantile=0.99 NaN
17:23:13 categraf_prometheus_sd_kuma_fetch_failures_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_sd_kuma_fetch_skipped_updates_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_sd_linode_failures_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_sd_nomad_failures_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_target_scrape_pool_exceeded_label_limits_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_target_scrape_pool_exceeded_target_limit_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_target_scrape_pool_reloads_failed_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_target_scrape_pool_reloads_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_target_scrape_pools_failed_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_target_scrape_pools_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_target_scrapes_cache_flush_forced_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_target_scrapes_exceeded_body_size_limit_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_target_scrapes_exceeded_sample_limit_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_target_scrapes_exemplar_out_of_order_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_target_scrapes_sample_duplicate_timestamp_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_target_scrapes_sample_out_of_bounds_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_target_scrapes_sample_out_of_order_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_template_text_expansion_failures_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_template_text_expansions_total agent_hostname=10.230 0
17:23:13 categraf_prometheus_treecache_watcher_goroutines agent_hostname=10.230 0
17:23:13 categraf_prometheus_treecache_zookeeper_failures_total agent_hostname=10.230 0
17:23:28 cpu_usage_active agent_hostname=10.230 cpu=cpu-total 2.5
17:23:28 disk_inodes_used agent_hostname=10.230 device=C: fstype=NTFS mode=rw path=\C: 0
17:23:28 disk_device_error agent_hostname=10.230 device=C: fstype=NTFS mode=rw path=\C: 0
2023/05/30 17:23:28 netstat.go:57: W! netstat_summary is only supported on linux
17:23:28 disk_total agent_hostname=10.230 device=C: fstype=NTFS mode=rw path=\C: 322123591680
17:23:28 disk_free agent_hostname=10.230 device=C: fstype=NTFS mode=rw path=\C: 210740219904
17:23:28 cpu_usage_idle agent_hostname=10.230 cpu=cpu-total 97.5
17:23:28 net_err_in agent_hostname=10.230 interface=以太网 0
17:23:28 net_err_out agent_hostname=10.230 interface=以太网 0
17:23:28 net_drop_out agent_hostname=10.230 interface=以太网 0
2023/05/30 17:23:28 tomcat.go:178: E! received HTTP status code: 404 expected: 200
17:23:28 net_bytes_sent agent_hostname=10.230 interface=以太网 819295449
17:23:28 net_bits_recv agent_hostname=10.230 interface=以太网 4665387448
17:23:28 net_packets_recv agent_hostname=10.230 interface=以太网 1137922
17:23:28 net_drop_in agent_hostname=10.230 interface=以太网 0
17:23:28 net_bits_sent agent_hostname=10.230 interface=以太网 6554363592
17:23:28 categraf_info agent_hostname=10.230 version=v0.3.5-08405fb022043f889844a1ca2e85a0b143eb4d04 1
17:23:28 diskio_writes agent_hostname=10.230 name=C: 50211
17:23:28 tomcat_up agent_hostname=10.230 url=http://127.0.0.1:8900/manager/status/all?XML=true 0
17:23:28 system_n_cpus agent_hostname=10.230 4
17:23:28 system_load_norm_1 agent_hostname=10.230 0
17:23:28 system_load_norm_5 agent_hostname=10.230 0
17:23:28 system_load_norm_15 agent_hostname=10.230 0
17:23:28 system_uptime agent_hostname=10.230 10570605
17:23:28 system_load1 agent_hostname=10.230 0
17:23:28 system_load5 agent_hostname=10.230 0
17:23:28 system_load15 agent_hostname=10.230 0
17:23:28 disk_used agent_hostname=10.230 device=C: fstype=NTFS mode=rw path=\C: 111383371776
17:23:28 cpu_usage_iowait agent_hostname=10.230 cpu=cpu-total 0
17:23:28 cpu_usage_irq agent_hostname=10.230 cpu=cpu-total 0
17:23:28 cpu_usage_softirq agent_hostname=10.230 cpu=cpu-total 0
17:23:28 categraf_go_gc_duration_seconds_count agent_hostname=10.230 5
17:23:28 diskio_read_bytes agent_hostname=10.230 name=C: 246128128
17:23:28 diskio_read_time agent_hostname=10.230 name=C: 61
17:23:28 diskio_io_time agent_hostname=10.230 name=C: 0
17:23:28 diskio_merged_reads agent_hostname=10.230 name=C: 0
17:23:28 diskio_merged_writes agent_hostname=10.230 name=C: 0
17:23:28 diskio_reads agent_hostname=10.230 name=C: 11792
17:23:28 diskio_write_time agent_hostname=10.230 name=C: 90
17:23:28 diskio_weighted_io_time agent_hostname=10.230 name=C: 0
17:23:28 diskio_iops_in_progress agent_hostname=10.230 name=C: 0
17:23:28 diskio_write_bytes agent_hostname=10.230 name=C: 359059456
17:23:28 diskio_iops_in_progress agent_hostname=10.230 name=D: 0
17:23:28 diskio_merged_writes agent_hostname=10.230 name=D: 0
17:23:28 categraf_go_gc_duration_seconds_sum agent_hostname=10.230 0.0010311
17:23:28 tomcat_scrape_use_seconds agent_hostname=10.230 url=http://127.0.0.1:8900/manager/status/all?XML=true 0
17:23:28 disk_used_percent agent_hostname=10.230 device=C: fstype=NTFS mode=rw path=\C: 34.57783740554125
17:23:28 disk_inodes_total agent_hostname=10.230 device=C: fstype=NTFS mode=rw path=\C: 0
17:23:28 disk_inodes_free agent_hostname=10.230 device=C: fstype=NTFS mode=rw path=\C: 0
17:23:28 disk_inodes_free agent_hostname=10.230 device=D: fstype=NTFS mode=rw path=\D: 0
17:23:28 disk_inodes_used agent_hostname=10.230 device=D: fstype=NTFS mode=rw path=\D: 0
17:23:28 categraf_go_gc_duration_seconds agent_hostname=10.230 quantile=0 0
17:23:28 mem_used_percent agent_hostname=10.230 70.89208616516622
17:23:28 mem_available_percent agent_hostname=10.230 29.107913834833777
17:23:28 mem_total agent_hostname=10.230 25597894656
17:23:28 mem_available agent_hostname=10.230 7451013120
17:23:28 mem_used agent_hostname=10.230 18146881536
17:23:28 categraf_go_gc_duration_seconds agent_hostname=10.230 quantile=0.25 0
17:23:28 net_bytes_recv agent_hostname=10.230 interface=以太网 583173431
17:23:28 net_packets_sent agent_hostname=10.230 interface=以太网 3140131
17:23:28 diskio_reads agent_hostname=10.230 name=D: 3947
17:23:28 diskio_writes agent_hostname=10.230 name=D: 55789
17:23:28 diskio_read_bytes agent_hostname=10.230 name=D: 121039872
17:23:28 diskio_write_bytes agent_hostname=10.230 name=D: 7845396480
17:23:28 disk_device_error agent_hostname=10.230 device=D: fstype=NTFS mode=rw path=\D: 0
17:23:28 disk_total agent_hostname=10.230 device=D: fstype=NTFS mode=rw path=\D: 677631430656
17:23:28 cpu_usage_guest agent_hostname=10.230 cpu=cpu-total 0
17:23:28 cpu_usage_guest_nice agent_hostname=10.230 cpu=cpu-total 0
17:23:28 cpu_usage_user agent_hostname=10.230 cpu=cpu-total 1.5625
17:23:28 cpu_usage_system agent_hostname=10.230 cpu=cpu-total 0.9375
17:23:28 cpu_usage_nice agent_hostname=10.230 cpu=cpu-total 0
17:23:28 cpu_usage_steal agent_hostname=10.230 cpu=cpu-total 0
17:23:28 disk_free agent_hostname=10.230 device=D: fstype=NTFS mode=rw path=\D: 314713292800
17:23:28 diskio_read_time agent_hostname=10.230 name=D: 55
17:23:28 diskio_write_time agent_hostname=10.230 name=D: 114
17:23:28 diskio_io_time agent_hostname=10.230 name=D: 0
17:23:28 categraf_go_gc_duration_seconds agent_hostname=10.230 quantile=0.5 0
17:23:28 categraf_go_gc_duration_seconds agent_hostname=10.230 quantile=0.75 0
17:23:28 categraf_go_gc_duration_seconds agent_hostname=10.230 quantile=1 0.0010311
17:23:28 categraf_go_goroutines agent_hostname=10.230 28
17:23:28 categraf_go_info agent_hostname=10.230 version=go1.19.9 1
17:23:28 categraf_go_memstats_alloc_bytes agent_hostname=10.230 1.3596296e+07
17:23:28 categraf_go_memstats_alloc_bytes_total agent_hostname=10.230 2.238396e+07
17:23:28 categraf_go_memstats_buck_hash_sys_bytes agent_hostname=10.230 1.465498e+06
17:23:28 categraf_go_memstats_frees_total agent_hostname=10.230 74629
17:23:28 categraf_go_memstats_gc_sys_bytes agent_hostname=10.230 8.432784e+06
17:23:28 categraf_go_memstats_heap_alloc_bytes agent_hostname=10.230 1.3596296e+07
17:23:28 categraf_go_memstats_heap_idle_bytes agent_hostname=10.230 3.457024e+06
17:23:28 categraf_go_memstats_heap_inuse_bytes agent_hostname=10.230 1.695744e+07
17:23:28 categraf_go_memstats_heap_objects agent_hostname=10.230 60301
17:23:28 categraf_go_memstats_heap_released_bytes agent_hostname=10.230 3.457024e+06
17:23:28 categraf_go_memstats_heap_sys_bytes agent_hostname=10.230 2.0414464e+07
17:23:28 categraf_go_memstats_last_gc_time_seconds agent_hostname=10.230 1.6854385935111566e+09
17:23:28 categraf_go_memstats_lookups_total agent_hostname=10.230 0
17:23:28 categraf_go_memstats_mallocs_total agent_hostname=10.230 134930
17:23:28 disk_used agent_hostname=10.230 device=D: fstype=NTFS mode=rw path=\D: 362918137856
17:23:28 diskio_weighted_io_time agent_hostname=10.230 name=D: 0
17:23:28 categraf_go_memstats_mcache_inuse_bytes agent_hostname=10.230 4672
17:23:28 categraf_go_memstats_mcache_sys_bytes agent_hostname=10.230 16352
17:23:28 categraf_go_memstats_mspan_inuse_bytes agent_hostname=10.230 183168
17:23:28 categraf_go_memstats_mspan_sys_bytes agent_hostname=10.230 195264
17:23:28 categraf_go_memstats_next_gc_bytes agent_hostname=10.230 2.1906176e+07
17:23:28 categraf_go_memstats_other_sys_bytes agent_hostname=10.230 833854
17:23:28 categraf_go_memstats_stack_inuse_bytes agent_hostname=10.230 557056
17:23:28 categraf_go_memstats_stack_sys_bytes agent_hostname=10.230 557056
17:23:28 categraf_go_memstats_sys_bytes agent_hostname=10.230 3.1915272e+07
17:23:28 categraf_go_threads agent_hostname=10.230 10
17:23:28 categraf_process_cpu_seconds_total agent_hostname=10.230 0.203125
17:23:28 categraf_process_max_fds agent_hostname=10.230 1.6777216e+07
17:23:28 categraf_process_open_fds agent_hostname=10.230 189
17:23:28 categraf_process_resident_memory_bytes agent_hostname=10.230 5.6655872e+07
17:23:28 categraf_process_start_time_seconds agent_hostname=10.230 1.685438593e+09
17:23:28 categraf_process_virtual_memory_bytes agent_hostname=10.230 4.3913216e+07
17:23:28 categraf_prometheus_remote_storage_exemplars_in_total agent_hostname=10.230 0
17:23:28 disk_used_percent agent_hostname=10.230 device=D: fstype=NTFS mode=rw path=\D: 53.556863132022514
17:23:28 diskio_merged_reads agent_hostname=10.230 name=D: 0
17:23:28 categraf_prometheus_remote_storage_samples_in_total agent_hostname=10.230 0
17:23:28 categraf_prometheus_remote_storage_string_interner_zero_reference_releases_total agent_hostname=10.230 0
17:23:28 categraf_prometheus_sd_azure_failures_total agent_hostname=10.230 0
17:23:28 categraf_prometheus_sd_consul_rpc_duration_seconds_count agent_hostname=10.230 call=service endpoint=catalog 0
17:23:28 categraf_prometheus_sd_consul_rpc_duration_seconds_sum agent_hostname=10.230 call=service endpoint=catalog 0
17:23:28 categraf_prometheus_sd_consul_rpc_duration_seconds agent_hostname=10.230 call=service endpoint=catalog quantile=0.5 NaN
17:23:28 categraf_prometheus_sd_consul_rpc_duration_seconds agent_hostname=10.230 call=service endpoint=catalog quantile=0.9 NaN
17:23:28 categraf_prometheus_sd_consul_rpc_duration_seconds agent_hostname=10.230 call=service endpoint=catalog quantile=0.99 NaN
17:23:28 categraf_prometheus_sd_consul_rpc_duration_seconds_count agent_hostname=10.230 call=services endpoint=catalog 0
17:23:28 categraf_prometheus_sd_consul_rpc_duration_seconds_sum agent_hostname=10.230 call=services endpoint=catalog 0
17:23:28 categraf_prometheus_sd_consul_rpc_duration_seconds agent_hostname=10.230 call=services endpoint=catalog quantile=0.5 NaN
17:23:28 categraf_prometheus_sd_consul_rpc_duration_seconds agent_hostname=10.230 call=services endpoint=catalog quantile=0.9 NaN
17:23:28 categraf_prometheus_sd_consul_rpc_duration_seconds agent_hostname=10.230 call=services endpoint=catalog quantile=0.99 NaN
17:23:28 categraf_prometheus_sd_consul_rpc_failures_total agent_hostname=10.230 0
17:23:28 categraf_prometheus_sd_dns_lookup_failures_total agent_hostname=10.230 0
17:23:28 categraf_prometheus_sd_dns_lookups_total agent_hostname=10.230 0
17:23:28 categraf_prometheus_sd_file_read_errors_total agent_hostname=10.230 0
17:23:28 categraf_prometheus_sd_file_scan_duration_seconds_count agent_hostname=10.230 0
17:23:28 categraf_prometheus_sd_file_scan_duration_seconds_sum agent_hostname=10.230 0
17:23:28 categraf_prometheus_sd_file_scan_duration_seconds agent_hostname=10.230 quantile=0.5 NaN
17:23:28 categraf_prometheus_sd_file_scan_duration_seconds agent_hostname=10.230 quantile=0.9 NaN
17:23:28 categraf_prometheus_sd_file_scan_duration_seconds agent_hostname=10.230 quantile=0.99 NaN
17:23:28 categraf_prometheus_sd_http_failures_total agent_hostname=10.230 0
17:23:28 disk_inodes_total agent_hostname=10.230 device=D: fstype=NTFS mode=rw path=\D: 0
17:23:28 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=add role=endpoints 0
17:23:28 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=add role=endpointslice 0
17:23:28 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=add role=ingress 0
17:23:28 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=add role=node 0
17:23:28 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=add role=pod 0
17:23:28 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=add role=service 0
17:23:28 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=delete role=endpoints 0
17:23:28 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=delete role=endpointslice 0
17:23:28 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=delete role=ingress 0
17:23:28 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=delete role=node 0
17:23:28 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=delete role=pod 0
17:23:28 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=delete role=service 0
17:23:28 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=update role=endpoints 0
17:23:28 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=update role=endpointslice 0
17:23:28 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=update role=ingress 0
17:23:28 categraf_prometheus_sd_kubernetes_events_total agent_hostname=10.230 event=update role=node 0

我只想过滤出tomcat,但是还是引用出很多监控指标,然后部分插件我已经删除 还能引用出来,删除后 我是重启categraf服务了的

而且只能获取到tomcat中的2个指标:
tomcat_scrape_use_seconds
tomcat_up

2 Answers

tomcat.go:172: E! failed to query tomcat url: Get "http://127.0.0.1:8900/manager/status/all?XML=true": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
也会得到这个报错

tomcat.go:178: E! received HTTP status code: 404 expected: 200 还有这个报错

修改了的,并且我的是tomcat7.x版本没有webapps/manager/META-INF/context.xml该文件

tomcat_up agent_hostname=10.230 url=http://127.0.0.1:8900/manager/status/all?XML=true 0