Skip to content

Instantly share code, notes, and snippets.

View jszwedko's full-sized avatar

Jesse Szwedko jszwedko

View GitHub Profile
This file has been truncated, but you can view the full file.
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"description": "A complete Vector configuration.",
"allOf": [
{
"type": "object",
"properties": {
"api": {
"description": "API options.",
"default": {
@jszwedko
jszwedko / gist:975a7c9a278af7491ecca89f4141ca90
Last active September 1, 2022 13:53
Vector configuration errors
[sources.source0]
type = "stdin"
[sinks.sink0]
type = "statsd"
inputs = ["source0"]
# 2022-08-25T19:17:49.988433Z ERROR vector::cli: Configuration error. error=missing field `mode` for key `sinks.sink0`
sources:
logs:
type: demo_logs
format: json
interval: 0
count: 10000
transforms:
add-key:
type: remap
inputs:
2022-04-12T04:04:02.5256267Z Requested labels: linux, test-runner
2022-04-12T04:04:02.5256369Z Job defined at: vectordotdev/vector/.github/workflows/baseline.yml@refs/heads/master
2022-04-12T04:04:02.5256397Z Waiting for a runner to pick up this job...
2022-04-12T04:04:03.7967056Z Job is about to start running on the runner: test-linux_7cfd80705f17 (organization)
2022-04-12T04:04:07.6357060Z Current runner version: '2.289.2'
2022-04-12T04:04:07.6363461Z Runner name: 'test-linux_7cfd80705f17'
2022-04-12T04:04:07.6363949Z Runner group name: 'Default'
2022-04-12T04:04:07.6364706Z Machine name: 'runner000279'
2022-04-12T04:04:07.6382433Z ##[group]Operating System
2022-04-12T04:04:07.6382920Z Ubuntu
= note: libopenssl_sys-adcecb20585789c3.rlib(p_lib.obj) : warning LNK4099: PDB 'ossl_static.pdb' was not found with 'libopenssl_sys-adcecb20585789c3.rlib(p_lib.obj)' or at 'C:\Users\Administrator\actions-runner\_work\vector\vector\target\debug\deps\ossl_static.pdb'; linking object as if no debug info
libopenssl_sys-adcecb20585789c3.rlib(p12_asn.obj) : warning LNK4099: PDB 'ossl_static.pdb' was not found with 'libopenssl_sys-adcecb20585789c3.rlib(p12_asn.obj)' or at 'C:\Users\Administrator\actions-runner\_work\vector\vector\target\debug\deps\ossl_static.pdb'; linking object as if no debug info
libopenssl_sys-adcecb20585789c3.rlib(stack.obj) : warning LNK4099: PDB 'ossl_static.pdb' was not found with 'libopenssl_sys-adcecb20585789c3.rlib(stack.obj)' or at 'C:\Users\Administrator\actions-runner\_work\vector\vector\target\debug\deps\ossl_static.pdb'; linking object as if no debug info
libopenssl_sys-adcecb20585789c3.rlib(x509_lu.obj) : warning LNK4099: PDB 'ossl_static.pdb' was not
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "clippy-test"
version = "0.1.0"
@jszwedko
jszwedko / main.go
Created August 11, 2021 22:52
Leveldb Counter
package main
import (
"fmt"
"os"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/opt"
)
@jszwedko
jszwedko / event.proto
Last active August 10, 2021 22:07
Dump Vector disk buffer data
syntax = "proto3";
package event;
import "google/protobuf/timestamp.proto";
message EventWrapper {
oneof event {
Log log = 1;
Metric metric = 2;
}
# HELP vector_adaptive_concurrency_in_flight adaptive_concurrency_in_flight
# TYPE vector_adaptive_concurrency_in_flight histogram
vector_adaptive_concurrency_in_flight_bucket{component_kind="sink",component_name="http",component_type="http",le="-inf"} 0 1628264500238
vector_adaptive_concurrency_in_flight_bucket{component_kind="sink",component_name="http",component_type="http",le="0.015625"} 88 1628264500238
vector_adaptive_concurrency_in_flight_bucket{component_kind="sink",component_name="http",component_type="http",le="0.03125"} 88 1628264500238
vector_adaptive_concurrency_in_flight_bucket{component_kind="sink",component_name="http",component_type="http",le="0.0625"} 88 1628264500238
vector_adaptive_concurrency_in_flight_bucket{component_kind="sink",component_name="http",component_type="http",le="0.125"} 88 1628264500238
vector_adaptive_concurrency_in_flight_bucket{component_kind="sink",component_name="http",component_type="http",le="0.25"} 88 1628264500238
vector_adaptive_concurrency_in_flight_bucket{compo
local aggregator = {}
local count = 0;
function aggregator.init()
count = 0
end
function aggregator.process()
count = count + 1