First off, I am not a programming language theorist, so please comment below if I say anything that's completely off-base or misleading. I'll be happy to make the necessary corrections.
Clears throat
package fpmax | |
import scala.util.Try | |
import scala.io.StdIn.readLine | |
object App0 { | |
def main: Unit = { | |
println("What is your name?") | |
val name = readLine() |
#!/bin/bash -e | |
INGESTER_DOMAIN_NAME="${INGESTER_DOMAIN_NAME:-$1}" | |
echo "CAUTION should be run from a secure directory" | |
if test -z "$INGESTER_DOMAIN_NAME" | |
then echo "needs INGESTER_DOMAIN_NAME" | |
exit 1 | |
else echo "INGESTER_DOMAIN_NAME=$INGESTER_DOMAIN_NAME" |
### | |
### [2023-06-19] UPDATE: Just tried to use my instructions again on a fresh install and it failed in a number of places. | |
###. Not sure if I'll update this gist (though I realise it seems to still have some traffic), but here's a list of | |
###. things to watch out for: | |
### - Check out the `nix-darwin` instructions, as they have changed. | |
### - There's a home manager gotcha https://github.com/nix-community/home-manager/issues/4026 | |
### | |
# I found some good resources but they seem to do a bit too much (maybe from a time when there were more bugs). | |
# So here's a minimal Gist which worked for me as an install on a new M1 Pro. |
# https://github.com/rama-nallamilli/kafka-prometheus-monitoring | |
# https://github.com/Yolean/kubernetes-kafka/blob/master/prometheus/10-metrics-config.yml | |
lowercaseOutputName: true | |
rules: | |
- pattern : kafka.network<type=Processor, name=IdlePercent, networkProcessor=(.+)><>Value | |
- pattern : kafka.network<type=RequestMetrics, name=RequestsPerSec, request=(.+)><>OneMinuteRate | |
- pattern : kafka.network<type=SocketServer, name=NetworkProcessorAvgIdlePercent><>Value | |
- pattern : kafka.server<type=ReplicaFetcherManager, name=MaxLag, clientId=(.+)><>Value | |
- pattern : kafka.server<type=BrokerTopicMetrics, name=(.+), topic=(.+)><>OneMinuteRate |