- zap + zapdriverをつかってログを構成しているアプリをcrond経由で動かしたときに構造化ログがjsonPayloadにうまく展開されない
- ログ自体は入るがjsonPayload.messageにテキストとしてJSONが入る
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
query GitLabIssue($projectPath: ID!) { | |
project(fullPath: $projectPath) { | |
name | |
issueCount: issueStatusCounts(types: ISSUE) { | |
all | |
closed | |
opened | |
} | |
issueToDoCount: issueStatusCounts(labelName: ["status::ToDo"]) { | |
all |
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
[sources.from_pubsub] | |
type = "http" | |
address = "0.0.0.0:8080" | |
path = "/" | |
encoding = "json" | |
[transforms.parse_pubsub_payload] | |
type = "remap" | |
inputs = ["from_pubsub"] | |
source = ''' |
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
diff --git a/.editorconfig b/.editorconfig | |
new file mode 100644 | |
index 0000000..3494874 | |
--- /dev/null | |
+++ b/.editorconfig | |
@@ -0,0 +1,10 @@ | |
+root = true | |
+ | |
+[*] | |
+end_of_line = lf |
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
sudo apt update | |
sudo apt upgrade -y | |
# install homebrew | |
function install_brew () { | |
sudo apt install -y build-essential curl file git | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)" | |
test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv) | |
export PATH=$PATH:~/.linuxbrew/bin | |
test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) |
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
Show hidden characters
{ | |
"extends": [ | |
"eslint:recommended", | |
"plugin:@typescript-eslint/recommended", | |
"plugin:@typescript-eslint/eslint-recommended", | |
"plugin:prettier/recommended", | |
"prettier/@typescript-eslint" | |
], | |
"plugins": ["@typescript-eslint"], |
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
{ | |
"extends": [ | |
"eslint:recommended", | |
"plugin:@typescript-eslint/recommended", | |
"plugin:@typescript-eslint/eslint-recommended", | |
"plugin:prettier/recommended", | |
"prettier/@typescript-eslint" | |
], | |
"plugins": ["@typescript-eslint"], |
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
apiVersion: extensions/v1beta1 | |
kind: DaemonSet | |
metadata: | |
name: node-exporter | |
spec: | |
template: | |
metadata: | |
labels: | |
app: node-exporter | |
annotations: |
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 ( | |
"fmt" | |
"bytes" | |
"strings" | |
"compress/zlib" | |
"math" | |
) |
NewerOlder