Skip to content

Instantly share code, notes, and snippets.

@agup006
Last active July 9, 2023 21:02
Show Gist options
  • Save agup006/e725984623e96568712926c5846ed058 to your computer and use it in GitHub Desktop.
Save agup006/e725984623e96568712926c5846ed058 to your computer and use it in GitHub Desktop.
The following are configuration files for collecting Windows events and Windows metrics
[INPUT]
Name winevtlog
Channels Setup,Windows PowerShell
Interval_Sec 1
DB winevtlog.sqlite
[OUTPUT]
Name stdout
Match *
# Node Exporter Metrics + Prometheus Exporter
# -------------------------------------------
# The following example collect host metrics on Linux and expose
# them through a Prometheus HTTP end-point.
#
# After starting the service try it with:
#
# $ curl http://127.0.0.1:2021/metrics
#
[SERVICE]
flush 1
log_level info
[INPUT]
name windows_exporter_metrics
tag node_metrics
scrape_interval 2
[OUTPUT]
name prometheus_exporter
match node_metrics
host 0.0.0.0
port 2021
[SERVICE]
flush 1
log_level info
[INPUT]
name windows_exporter_metrics
tag node_metrics
scrape_interval 2
[INPUT]
Name winevtlog
Channels Setup,Windows PowerShell
Interval_Sec 1
DB winevtlog.sqlite
[OUTPUT]
Name stdout
Match *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment