This file contains hidden or 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
| package fluentd | |
| import "github.com/gliderlabs/logspout/router" | |
| // NewAdapter creates a Logspout fluentd adapter instance. | |
| func NewAdapter(route *router.Route) (router.LogAdapter, error) { | |
| // Add code here to construct NewAdapter object | |
| } |
This file contains hidden or 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
| package fluentd | |
| import ( | |
| "log" | |
| "net" | |
| "os" | |
| "strconv" | |
| "time" | |
| "github.com/fluent/fluent-logger-golang/fluent" |
This file contains hidden or 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
| // Stream handles a stream of messages from Logspout and forwards it to Fluentd | |
| func (ad *Adapter) Stream(logstream chan *router.Message) { | |
| for message := range logstream { | |
| // Skip if message is empty | |
| messageIsEmpty, err := regexp.MatchString("^[[:space:]]*$", message.Data) | |
| if messageIsEmpty { | |
| log.Println("Skipping empty message!") | |
| continue | |
| } |
This file contains hidden or 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
| package main | |
| import ( | |
| _ "github.com/dsouzajude/logspout-fluentd/fluentd" | |
| _ "github.com/gliderlabs/logspout/httpstream" | |
| _ "github.com/gliderlabs/logspout/transports/tcp" | |
| _ "github.com/gliderlabs/logspout/transports/udp" | |
| ) |
This file contains hidden or 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
| #!/bin/sh | |
| set -e | |
| mkdir -p /go/src/github.com/gliderlabs | |
| cp -r /src /go/src/github.com/gliderlabs/logspout | |
| # backwards compatibility | |
| ln -fs /tmp/docker.sock /var/run/docker.sock |
This file contains hidden or 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
| # ## Multi-stage build | |
| # | |
| # Init stage, includes logspout source code | |
| # and triggers the build.sh script | |
| # | |
| FROM gliderlabs/logspout:master as master | |
| # | |
| # Build stage, build logspout with fluentd adapter |
This file contains hidden or 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
| # | |
| # Prerequisite installations for using this zsh configuration | |
| # | |
| # Following utilities must be installed on the system for this configuration to work | |
| # | |
| # fd https://github.com/sharkdp/fd | |
| # fasd https://github.com/clvv/fasd/wiki/Installing-via-Package-Managers#mac-os-x | |
| # fzf https://github.com/junegunn/fzf | |
| # ripgrep https://github.com/BurntSushi/ripgrep |
This file contains hidden or 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
| {"lastUpload":"2020-03-15T15:43:53.624Z","extensionVersion":"v3.4.3"} |
This file contains hidden or 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
| FROM jenkins/jenkins:2.220 | |
| LABEL maintainer="[email protected]" | |
| USER root | |
| # Create Jenkins Log Folder | |
| RUN mkdir /var/log/jenkins | |
| RUN mkdir /var/cache/jenkins | |
| RUN chown -R jenkins:jenkins /var/log/jenkins | |
| RUN chown -R jenkins:jenkins /var/cache/jenkins |
This file contains hidden or 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
| global: | |
| scrape_interval: 10s | |
| external_labels: | |
| Environment: sandbox | |
| Region: eu-west-1 | |
| Source: prometheus | |
| scrape_configs: | |
| - job_name: consul-services | |
| metrics_path: "/metrics" |
OlderNewer