This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum Action { | |
COOPERATE, | |
CHEAT | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
tracing: | |
http: | |
name: envoy.zipkin | |
config: | |
collector_cluster: jaeger | |
collector_endpoint: "/api/v1/spans" | |
admin: | |
access_log_path: "/tmp/admin_access.log" | |
address: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
req, err := http.NewRequest("GET", "http://service_a_envoy:8788/", nil) | |
if err != nil { | |
fmt.Printf("%s", err) | |
} | |
req.Header.Add("x-request-id", r.Header.Get("x-request-id")) | |
req.Header.Add("x-b3-traceid", r.Header.Get("x-b3-traceid")) | |
req.Header.Add("x-b3-spanid", r.Header.Get("x-b3-spanid")) | |
req.Header.Add("x-b3-parentspanid", r.Header.Get("x-b3-parentspanid")) | |
req.Header.Add("x-b3-sampled", r.Header.Get("x-b3-sampled")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
) | |
func handler(w http.ResponseWriter, r *http.Request) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
admin: | |
access_log_path: "/tmp/admin_access.log" | |
address: | |
socket_address: | |
address: "127.0.0.1" | |
port_value: 9901 | |
stats_sinks: | |
- | |
name: "envoy.statsd" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global: | |
scrape_interval: 15s | |
scrape_configs: | |
- job_name: 'statsd' | |
scrape_interval: 5s | |
static_configs: | |
- targets: ['statsd_exporter:9102'] | |
labels: | |
group: 'services' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: 1 | |
datasources: | |
- name: prometheus | |
type: prometheus | |
access: Server | |
url: http://prometheus:9090 | |
editable: true | |
isDefault: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from grafanalib.core import * | |
import os | |
dashboard = Dashboard( | |
title="Services Dashboard", | |
templating=Templating( | |
[ | |
Template( | |
name="source", | |
dataSource="prometheus", | |
query="metrics(.*_cluster_.*_upstream_rq_2xx)", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
admin: | |
access_log_path: "/tmp/admin_access.log" | |
address: | |
socket_address: | |
address: "127.0.0.1" | |
port_value: 9901 | |
static_resources: | |
listeners: | |
- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
admin: | |
access_log_path: "/tmp/admin_access.log" | |
address: | |
socket_address: | |
address: "127.0.0.1" | |
port_value: 9901 | |
static_resources: | |
listeners: | |
- |
OlderNewer