Created
April 10, 2019 19:34
-
-
Save bytesandwich/64109af00cc893228977cf0ab0833109 to your computer and use it in GitHub Desktop.
Logstash config to collect/push spinnaker metrics from a localdebian install.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
http_poller { | |
# Poll the (Netflix project) spectator metrics | |
# from spinnaker services. | |
urls => { | |
clouddriver => "http://localhost:7002/spectator/metrics" | |
fiat => "http://localhost:7003/spectator/metrics" | |
igor => "http://localhost:8088/spectator/metrics" | |
front50 => "http://localhost:8080/spectator/metrics" | |
orca => "http://localhost:8083/spectator/metrics" | |
rosco => "http://localhost:8087/spectator/metrics" | |
echo => "http://localhost:8089/spectator/metrics" | |
gate => { | |
user => "${GATE_USER}" | |
password => "${GATE_PASS}" | |
url => "https://${SPINNAKER_HOST_NAME}:8084/spectator/metrics" | |
} | |
} | |
request_timeout => 60 | |
# every minute | |
schedule => { cron => "* * * * * UTC"} | |
codec => "json" | |
metadata_target => "http_poller_metadata" | |
} | |
} | |
filter { | |
# This invokes a custom ruby filter that turns the spectator | |
# metrics page json summary into individual events. | |
ruby { | |
path => "/opt/spinnaker_manager/monitoring/parse_event.rb" | |
} | |
} | |
output{ | |
http { | |
url => "https://myinfluxdb.example" | |
http_method => "post" | |
format => "json_batch" | |
headers => ["Content-Type", "application/json"] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment