Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metrics re-write #78

Draft
wants to merge 92 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
15a4a8f
🔊 prometheus and dogstatsd logging
nuts-rice Mar 7, 2024
11efe4f
🚧 prometheus metrics
nuts-rice Mar 7, 2024
1ce77a6
🔊 json formatting
nuts-rice Mar 8, 2024
0ff012e
🏷 static registry for prometheus logs️
nuts-rice Mar 8, 2024
6fc4335
🎨 clippy, fmt,
nuts-rice Mar 8, 2024
6440e2c
🔊 prometheus types and struct
nuts-rice Mar 9, 2024
8eb6b31
⚡️ test metric json and metric impl
nuts-rice Mar 11, 2024
01ba25d
🔊 prometheus logging latency , debug print of bucket
nuts-rice Mar 11, 2024
9af405e
🔊 prometheus logging latency , debug print of bucket
nuts-rice Mar 11, 2024
3602838
🧪 wip: threadsafe canidates for metrics storage
nuts-rice Mar 12, 2024
17df95c
Merge branch 'prometheusd' of https://github.com/nuts-rice/blutgang i…
nuts-rice Mar 12, 2024
a0a9ca6
🚧 metrics channel
nuts-rice Mar 12, 2024
6627123
🚧 impl RegistryChannel
nuts-rice Mar 12, 2024
fd9723a
🗑 remove send_request additions️
nuts-rice Mar 12, 2024
205317c
🏷️ WIP latency example using fancy new types for channel
nuts-rice Mar 13, 2024
1d78ee6
✨ crossbeam channel and latency demo
nuts-rice Mar 14, 2024
4f4a5cb
🎨 fmt
nuts-rice Mar 14, 2024
d505f7b
Merge branch '0.3.3' into prometheusd
nuts-rice Mar 14, 2024
755ec5d
🗑 remove redundant
nuts-rice Mar 15, 2024
9564d24
Merge branch 'prometheusd' of https://github.com/nuts-rice/blutgang i…
nuts-rice Mar 15, 2024
3665c87
🗑️ remove non-channel typed metrics code
nuts-rice Mar 15, 2024
53512ad
🚧 command enum and sender enum
nuts-rice Mar 15, 2024
512aea8
🗑️ remove crossbeam, replace back with mpsc
nuts-rice Mar 16, 2024
27be248
⚗️ ws metric experiment
nuts-rice Mar 18, 2024
104763a
🔊 channel metrics
nuts-rice Mar 18, 2024
e10f1ba
🤡 mocks for metrics tests + 🚧 wip admin metrics methods
nuts-rice Mar 18, 2024
26fdd71
🩹 result for encode channel
nuts-rice Mar 19, 2024
cc890df
🚧 metrics rewrite
nuts-rice Mar 20, 2024
7b3c9ed
🧵 metrics channel rewrite
nuts-rice Mar 20, 2024
f9b55ae
⚗️ startup sequence + sink for metrics
nuts-rice Mar 21, 2024
7ff2770
⚗️ docker setup of prometheus
nuts-rice Mar 23, 2024
d514213
♻️ reuse encoder?
nuts-rice Mar 25, 2024
36d14e1
🗑️ make simpler!
nuts-rice Mar 25, 2024
0ff4cc9
rebase
nuts-rice Mar 27, 2024
2782a64
🔀 rebase to simpler
nuts-rice Mar 27, 2024
fe51288
✨ accept macro
nuts-rice Mar 28, 2024
e65cc1e
🚚 move metrics to its own mode, remove unused metrics imports
nuts-rice Apr 2, 2024
1d1a53c
🧪 liveready+metrics test with debug print
nuts-rice Apr 2, 2024
542b737
🧪 another liveready + metrics test
nuts-rice Apr 2, 2024
2c48855
🔊✅ liveready + metrics test and expose metrics fields
nuts-rice Apr 4, 2024
e2fb78b
🏷✅ LivereadyMetric types and test fix️
nuts-rice Apr 4, 2024
1604f1e
🏷✅ LivereadyMetric types and test fix️
nuts-rice Apr 4, 2024
0a38d6b
🚩 prometheus flag
nuts-rice Apr 5, 2024
042cc40
🩹 fix tests
nuts-rice Apr 5, 2024
35eb780
merge with origin
nuts-rice Apr 5, 2024
91305b2
erase a thing
nuts-rice Apr 5, 2024
f24b191
Merge branch 'prometheusd' of https://github.com/nuts-rice/blutgang i…
nuts-rice Apr 5, 2024
4d5a8de
merge
nuts-rice Apr 5, 2024
bf2e941
⚗️ on_accept_metrics_request_readiness and sink test
nuts-rice Apr 6, 2024
904bb80
🩹 fix metrics update sink test
nuts-rice Apr 8, 2024
0305915
🔊 grafana
nuts-rice Apr 8, 2024
738f8fd
🚧 wip metrics and main
nuts-rice Apr 8, 2024
16ab103
🚧 listen_metrics_requests
nuts-rice Apr 9, 2024
4da41fb
🔀 Merge pull request #1 from nuts-rice/grafana-dash
nuts-rice Apr 9, 2024
eaa9e6b
💥 fix main startup ownership woes but feature flag still blocking things
nuts-rice Apr 9, 2024
3526c61
🩹 registry ownership bs fix
nuts-rice Apr 9, 2024
5c17fd7
🔧 metrics configs and toml file
nuts-rice Apr 11, 2024
9ea7b51
🧪 test: debug print metrics
nuts-rice Apr 12, 2024
c4a7fa4
🔧 cli args
nuts-rice Apr 16, 2024
4035763
🔧 count update interval config val
nuts-rice Apr 17, 2024
5d781ee
🔧 metrics_server waits on interval val
nuts-rice Apr 17, 2024
d9dca75
🧪 metrics_server debug print
nuts-rice Apr 18, 2024
a2eb754
⚗️ liveness request metrics processor guard and test
nuts-rice Apr 18, 2024
009423a
🐛 fix: no more blocking! ^_^
nuts-rice Apr 19, 2024
ff74f84
🎨 fmt
nuts-rice Apr 19, 2024
95c8040
fix: actually fix main sequence, still needs config fix
nuts-rice Apr 19, 2024
a31cba8
🩹 fix: metrics address
nuts-rice Apr 19, 2024
5064b25
⚗️ e2e tests
nuts-rice Apr 22, 2024
f5b5273
🧪 mocks for e2e tests
nuts-rice Apr 22, 2024
45484b7
⚗️ e2e tests and config change for mocks
nuts-rice Apr 22, 2024
1546cb1
🚚 move mocks to liveready
nuts-rice Apr 23, 2024
2ccecdf
🎲 rng for lr mocks
nuts-rice Apr 24, 2024
29aa2e3
🗑️ delete some things, rename
nuts-rice Apr 24, 2024
7e0b3a1
🚧 tweak a few things
nuts-rice Apr 24, 2024
ca7c803
🧪 fuzz json rx
nuts-rice Apr 24, 2024
7385456
🔧 fix: config for tests
nuts-rice Apr 25, 2024
16f750c
♻ + 🧪 refactor status val and test ️
nuts-rice Apr 27, 2024
30480fe
♻️ refactor
nuts-rice Apr 29, 2024
c35b5a5
🚧 wip: metrics methods
nuts-rice Apr 29, 2024
fff1990
⚗️ wip:metrics + method
nuts-rice May 2, 2024
441321b
🗑️ remove unused code
nuts-rice May 6, 2024
c6b39b7
🩹 fix: broken things
nuts-rice May 6, 2024
2689353
♻️ refactor: move interval upstream
nuts-rice May 7, 2024
1479906
✨ feat: prometheus handle
nuts-rice May 7, 2024
cb594c0
⚗️ experiment with rpc metrics
nuts-rice May 8, 2024
f7809fb
🧪 test: rpc latency metrics update
nuts-rice May 14, 2024
23002b4
🧪 tests: collect() call
nuts-rice May 14, 2024
83934c7
🏷️ feat: prometheus handle type
nuts-rice May 20, 2024
ff2ba9f
🚧 wip: prometheus handler
nuts-rice May 28, 2024
94ea412
♻️ (refactor): metrics refactor
nuts-rice Jun 7, 2024
05bcd25
🚧 wip: simplify with more metrics
nuts-rice Jul 15, 2024
b3c567f
🔊 docker container for prometheus
nuts-rice Jul 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Build docker image

on:
push:
branches:
- master
tags:
- '**'

jobs:

build-push:
name: build-push
runs-on: ubuntu-latest

steps:

- name: Checkout this repo
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Context for Buildx
shell: bash
id: buildx-context
run: |
docker context create builders

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
endpoint: builders

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: makemake1337/blutgang
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: docker-build-push
id: docker_build
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile
tags: ${{ steps.meta.outputs.tags }}
push: true
platforms: linux/amd64,linux/arm64

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
/config.toml
/.env
/default.sled
.local-history
src/config/test_metrics.json
Cargo.lock
Loading
Loading