Merge pull request #45096 from crassirostris/fluentd-metrics-exporter

Automatic merge from submit-queue

Add metrics exporter to the fluentd-gcp deployment

Metrics exporter container reads metrics from the `/metrics` endpoint in fluentd and exports them directly to the Stackdriver. It assumes that Stackdriver Monitoring API is enabled.

/cc @fgrzadkowski
pull/6/head
Kubernetes Submit Queue 2017-04-28 08:42:06 -07:00 committed by GitHub
commit 94567f64e1
1 changed files with 13 additions and 0 deletions

View File

@ -88,6 +88,16 @@ spec:
then
exit 1;
fi;
- name: prometheus-to-sd-exporter
image: gcr.io/google-containers/prometheus-to-sd:v0.1.0
command:
- /monitor
- --component=fluentd
- --stackdriver-prefix=container.googleapis.com/internal/addons
- --whitelisted-metrics=logging_line_count,logging_entry_count
volumeMounts:
- name: ssl-certs
mountPath: /etc/ssl/certs
nodeSelector:
beta.kubernetes.io/fluentd-ds-ready: "true"
tolerations:
@ -107,3 +117,6 @@ spec:
- name: config-volume
configMap:
name: fluentd-gcp-config
- name: ssl-certs
hostPath:
path: /etc/ssl/certs