Skip to content

Instantly share code, notes, and snippets.

View gitirabassi's full-sized avatar
🐼
Be kind

Giacomo Tirabassi gitirabassi

🐼
Be kind
  • London, UK
View GitHub Profile
@gitirabassi
gitirabassi / README.md
Last active February 4, 2020 22:15
PromQL vs Flux

This query is used to calculate error rate and total requests per service and environment

data = from(bucket: "istio")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r._measurement == "istio_requests_total")
  |> filter(fn: (r) => r._field == "counter")
  |> filter(fn: (r) => r.reporter == "destination" )
  |> filter(fn: (r) => r.request_protocol == "http")
  |> difference(nonNegative: true, columns: ["_value"])
@gitirabassi
gitirabassi / keybase.md
Created July 31, 2019 12:52
keybase.md

Keybase proof

I hereby claim:

  • I am gitirabassi on github.
  • I am gitirabassi (https://keybase.io/gitirabassi) on keybase.
  • I have a public key ASBvwCcXcHv9IR9J1s67lNiNhjGX6VXJdi1k4l0e5GxoJwo

To claim this, I am signing this object: