Skip to content

Instantly share code, notes, and snippets.

@bytesandwich
Created April 10, 2019 19:34
Show Gist options
  • Save bytesandwich/64109af00cc893228977cf0ab0833109 to your computer and use it in GitHub Desktop.
Save bytesandwich/64109af00cc893228977cf0ab0833109 to your computer and use it in GitHub Desktop.
Logstash config to collect/push spinnaker metrics from a localdebian install.
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