feat(observability): add product metrics for API, outbox and delivery
This commit is contained in:
1 parent
560724e2aa
commit
94488e2b57
51 files changed
+3655
-68
No files matched your search
@@ -205,6 +205,7 @@ services:
|
||||
- "12347"
|
||||
networks:
|
||||
observability: {}
|
||||
docker-api: {}
|
||||
app:
|
||||
aliases:
|
||||
- faro-receiver
|
||||
@@ -234,11 +235,17 @@ services:
|
||||
EVENTS: "1"
|
||||
IMAGES: "0"
|
||||
INFO: "0"
|
||||
NETWORKS: "0"
|
||||
# Alloy discovery.docker reads the networks of each container to
|
||||
# build its labels; without read access discovery fails with 403 and
|
||||
# no log reaches Loki.
|
||||
NETWORKS: "1"
|
||||
PING: "1"
|
||||
POST: "0"
|
||||
VERSION: "1"
|
||||
volumes:
|
||||
# read_only only stops writes to the socket file inode; every Docker
|
||||
# API call still goes through it. The HAProxy rules above are the only
|
||||
# API restriction.
|
||||
- type: bind
|
||||
source: ${DOCKER_SOCKET_PATH:-/var/run/docker.sock}
|
||||
target: /var/run/docker.sock
|
||||
@@ -247,8 +254,10 @@ services:
|
||||
create_host_path: false
|
||||
expose:
|
||||
- "2375"
|
||||
# Only Alloy shares this network, so no other monitoring service can
|
||||
# reach the Docker API through the proxy.
|
||||
networks:
|
||||
- observability
|
||||
- docker-api
|
||||
# The image entrypoint renders HAProxy configuration before starting.
|
||||
tmpfs:
|
||||
- /tmp
|
||||
@@ -303,6 +312,9 @@ networks:
|
||||
external: true
|
||||
observability:
|
||||
internal: true
|
||||
# The Docker API proxy and its only client, Alloy.
|
||||
docker-api:
|
||||
internal: true
|
||||
|
||||
volumes:
|
||||
alloy_data:
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:alpine
|
||||
# Terse error logging leaves out DETAIL, HINT, QUERY, and CONTEXT. The
|
||||
# DETAIL of a unique or foreign key violation quotes the key value, such
|
||||
# as an email address, and the container logs go to Loki.
|
||||
command: ["postgres", "-c", "log_error_verbosity=terse"]
|
||||
environment:
|
||||
POSTGRES_DB: ${POSTGRES_DB:?Set POSTGRES_DB in the root .env file}
|
||||
POSTGRES_USER: ${POSTGRES_USER:?Set POSTGRES_USER in the root .env file}
|
||||
|
||||
Reference in new issue
Block a user