A simple showcasing app for Grafana Faro
APACHE-2.0 License
A simple e-commerce website built with PHP, PostgreSQL. Monitored by Grafana Application Observability.
k8s/kubernetes-monitoring.values.yaml
.export FARO_URL=https://my-collector.endpoint
export OTLP_ENDPOINT_HTTP=http://grafana-k8s-monitoring-grafana-agent.faro-shop.svc.cluster.local:4318
export OTLP_ENDPOINT_GRPC=http://grafana-k8s-monitoring-grafana-agent.faro-shop.svc.cluster.local:4317
# Create a kind cluster
kind create cluster --name faro-shop
# Deploy Kubernetes Monitoring
helm repo add grafana https://grafana.github.io/helm-charts &&
helm repo update &&
helm upgrade --install --atomic --timeout 300s grafana-k8s-monitoring grafana/k8s-monitoring \
--namespace "faro-shop" \
--create-namespace \
--values k8s/kubernetes-monitoring.values.yaml
# Deploy the application
helm repo add faro-shop https://cedricziel.github.io/faro-shop &&
helm repo update &&
helm upgrade --install --atomic --timeout 300s faro-shop faro-shop/faro-shop \
--create-namespace \
--namespace faro-shop \
--set caddy.env.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=$OTLP_ENDPOINT_GRPC \
--set app.env.OTEL_EXPORTER_OTLP_ENDPOINT=$OTLP_ENDPOINT_HTTP \
--set worker.env.OTEL_EXPORTER_OTLP_ENDPOINT=$OTLP_ENDPOINT_HTTP \
--set app.env.FARO_URL=$FARO_URL
SourceMap upload can be configured by setting some environment variables
at build time. Please take a look at the webpack.config.js
file for the configuration.
Without uploaded source-maps, the error messages look like this:
With uploaded source-maps, the error messages look like this:
brew install php
)
brew install composer
)pecl install opentelemetry
)brew install node
OR nvm use
)# Clone the repository
git clone https://github.com/cedricziel/faro-shop.git
# set the variables
cp env.template .env
# Set the variables in the `.env` file
# Install dependencies
composer install
# Run the application
symfony serve
Root Cause: Kernel listener will sleep for a second if the request comes from a specific country.
Root Cause: AdController will fail to serve ads for 'Phare du Petit Minou'.
Root Cause: AdRepository injects random failure at the top of the hour and 30 minutes past
Apache 2.0