Hey, After i updated my fedora machine to 44 3 finger tap(touchpad) paste stopped working. how do i fix it. GNOME 50
Edit: Found the solution thanks to a comment
Go to gnome tweaks there is a option for this
Hey, After i updated my fedora machine to 44 3 finger tap(touchpad) paste stopped working. how do i fix it. GNOME 50
Edit: Found the solution thanks to a comment
Go to gnome tweaks there is a option for this
Hey,
I just migrated our logging system from datadog to self hosted grafana for my company. loki has a plugin in docker for sending logs to loki
but in podman plugins does not exists. can anyone tell me what it easy to setup for per container logging in podman using grafana loki.
edit:
managed to set it up
enable podman socket by:
systemctl --user enable --now podman.socket
chmod 666 /run/user/$(id -u)/podman/podman.sock
config.alloy
discovery.docker "podman" {
host = "unix:///var/run/docker.sock"
}
discovery.relabel "podman" {
targets = discovery.docker.podman.targets
rule {
source_labels = ["__meta_docker_container_label_logging_alloy"]
regex = "true"
action = "keep"
}
rule {
source_labels = ["__meta_docker_container_name"]
regex = "/(.*)"
target_label = "container_name"
}
rule {
source_labels = ["__meta_docker_container_label_com_docker_compose_service"]
target_label = "service"
}
rule {
target_label = "job"
replacement = "podman"
}
}
loki.source.docker "podman_logs" {
host = "unix:///var/run/docker.sock"
targets = discovery.relabel.podman.output
forward_to = [loki.write.default.receiver]
}
loki.write "default" {
endpoint {
url = "http://loki:3100/loki/api/v1/push"
}
}
compose.yml
services:
loki:
image: grafana/loki:3.3.2
container_name: loki
command: -config.file=/etc/loki/local-config.yaml
ports:
- "3100:3100"
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
volumes:
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources:ro
depends_on:
- loki
alloy:
image: grafana/alloy:latest
container_name: alloy
security_opt:
- label=disable
command:
- run
- /etc/alloy/config.alloy
- --server.http.listen-addr=0.0.0.0:12345
ports:
- "12345:12345"
volumes:
- ./config.alloy:/etc/alloy/config.alloy:ro
- /run/user/1000/podman/podman.sock:/var/run/docker.sock:rw
hope this helps other peoples
note: keep this in same network and compose as your main services and add
nginx:
image: nginx:latest
container_name: demo-nginx
ports:
- "8081:80"
labels:
logging.alloy: "true"
add labels logging.alloy: "true" for those container for which logging is needed
go to grafana -> add loki data source -> drill down metrics logs
you got logs