Skip to content

Instantly share code, notes, and snippets.

View bianpengyuan's full-sized avatar

Pengyuan Bian bianpengyuan

View GitHub Profile
@bianpengyuan
bianpengyuan / stackdriver.yaml
Last active November 17, 2018 02:49
Stackdriver Adapter Config
apiVersion: "config.istio.io/v1alpha2"
kind: stackdriver
metadata:
name: handler
namespace: istio-system
spec:
push_interval: 10s
service_account_path: /sd-account/sa.json
metricInfo:
server-request-count.metric.istio-system:
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: zipkin-to-stackdriver
namespace: istio-system
spec:
replicas: 1
selector:
matchLabels:
app: zipkin-to-stackdriver
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: pinger-istio-system
namespace: istio-system
labels:
app: pinger
rules:
- apiGroups: [""]
resources: ["services"]
apiVersion: "config.istio.io/v1alpha2"
kind: handler
metadata:
name: stackdriver
namespace: istio-system
labels:
app: istio-telemetry
spec:
compiledAdapter: stackdriver
params:
apiVersion: "config.istio.io/v1alpha2"
kind: stackdriver
metadata:
name: handler
namespace: istio-system
spec:
pushInterval: 10s
metricInfo:
server-request-count.metric.istio-system:
# Due to a bug in gogoproto deserialization, Enums in maps must be
apiVersion: "config.istio.io/v1alpha2"
kind: stackdriver
metadata:
name: log-handler
namespace: istio-system
spec:
push_interval: 10s
logInfo:
server-accesslog-stackdriver.logentry.istio-system:
labelNames:
apiVersion: "config.istio.io/v1alpha2"
kind: stackdriver
metadata:
name: tracing-handler
namespace: istio-system
spec:
push_interval: 10s
trace:
sample_probability: 0.1
---
apiVersion: "config.istio.io/v1alpha2"
kind: stackdriver
metadata:
name: handler
namespace: istio-system
spec:
pushInterval: 10s
metricInfo:
server-request-count.metric.istio-system:
# Due to a bug in gogoproto deserialization, Enums in maps must be
apiVersion: "config.istio.io/v1alpha2"
kind: stackdriver
metadata:
name: handler
namespace: istio-system
spec:
pushInterval: 10s
metricInfo:
server-request-count.metric.istio-system:
# Due to a bug in gogoproto deserialization, Enums in maps must be
static_resources:
listeners:
- name: main
address:
socket_address:
address: 0.0.0.0
port_value: 80
filter_chains:
- filters:
- name: envoy.http_connection_manager