Skip to content

Instantly share code, notes, and snippets.

:octocat:
I'm engineer. Trust me.

Alexander Ilyin alexanderilyin

View GitHub Profile
@alexanderilyin
alexanderilyin / README.md
Created Nov 15, 2018
Auto-increment Minor Semantic Version using Docker Hub API v2
View README.md

For example your latest image with semantic versioning looks like this:

${DOCKER_HUB_ORG}/${DOCKER_HUB_REPO}:v1.20.0

Example provided above will do the folowing:

  1. Generate token using your github username and password.
  2. Get list of all tags from repository.
@alexanderilyin
alexanderilyin / postmortem.md
Created Apr 19, 2018 — forked from mlafeldt/postmortem.md
Example Postmortem from SRE book, pp. 487-491
View postmortem.md

Shakespeare Sonnet++ Postmortem (incident #465)

Date

2015-10-21

Authors

  • jennifer
  • martym
View -
filter {
if [type] == 'php-errors-json' {
json {
source => 'message'
remove_field => '[message]'
}
date {
match => [ "[timestamp]", "UNIX" ]
target => "@timestamp"
View -
filter {
if [type] == 'php-fpm-slow-log' {
# Drop empty lines
if [message] =~ /^\s*$/ {
drop { }
}
# Time prefix appears on each line
multiline {
pattern => "^(\[0x0|script_filename|$)"
You can’t perform that action at this time.