Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
5b62eb29
Commit
5b62eb29
authored
Oct 26, 2017
by
Marian Lobur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump version of prometheus-to-sd to 0.2.2.
Bump version of prometheus-to-sd to improve logging, add pod_name and pod_namespace flags and remove deprecated flags.
parent
2e2062db
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
14 deletions
+27
-14
heapster-controller.yaml
...s/cluster-monitoring/stackdriver/heapster-controller.yaml
+1
-4
event-exporter.yaml
cluster/addons/fluentd-gcp/event-exporter.yaml
+13
-6
fluentd-gcp-ds.yaml
cluster/addons/fluentd-gcp/fluentd-gcp-ds.yaml
+13
-4
No files found.
cluster/addons/cluster-monitoring/stackdriver/heapster-controller.yaml
View file @
5b62eb29
...
@@ -65,7 +65,7 @@ spec:
...
@@ -65,7 +65,7 @@ spec:
readOnly
:
true
readOnly
:
true
# BEGIN_PROMETHEUS_TO_SD
# BEGIN_PROMETHEUS_TO_SD
-
name
:
prom-to-sd
-
name
:
prom-to-sd
image
:
gcr.io/google-containers/prometheus-to-sd:v0.2.
1
image
:
gcr.io/google-containers/prometheus-to-sd:v0.2.
2
command
:
command
:
-
/monitor
-
/monitor
-
--source=heapster:http://localhost:8082?whitelisted=stackdriver_requests_count,stackdriver_timeseries_count
-
--source=heapster:http://localhost:8082?whitelisted=stackdriver_requests_count,stackdriver_timeseries_count
...
@@ -73,9 +73,6 @@ spec:
...
@@ -73,9 +73,6 @@ spec:
-
--api-override={{ prometheus_to_sd_endpoint }}
-
--api-override={{ prometheus_to_sd_endpoint }}
-
--pod-id=$(POD_NAME)
-
--pod-id=$(POD_NAME)
-
--namespace-id=$(POD_NAMESPACE)
-
--namespace-id=$(POD_NAMESPACE)
volumeMounts
:
-
name
:
ssl-certs
mountPath
:
/etc/ssl/certs
env
:
env
:
-
name
:
POD_NAME
-
name
:
POD_NAME
valueFrom
:
valueFrom
:
...
...
cluster/addons/fluentd-gcp/event-exporter.yaml
View file @
5b62eb29
...
@@ -52,16 +52,23 @@ spec:
...
@@ -52,16 +52,23 @@ spec:
-
'
/event-exporter'
-
'
/event-exporter'
# BEGIN_PROMETHEUS_TO_SD
# BEGIN_PROMETHEUS_TO_SD
-
name
:
prometheus-to-sd-exporter
-
name
:
prometheus-to-sd-exporter
image
:
gcr.io/google-containers/prometheus-to-sd:v0.2.
1
image
:
gcr.io/google-containers/prometheus-to-sd:v0.2.
2
command
:
command
:
-
/monitor
-
/monitor
-
--component=event_exporter
-
--stackdriver-prefix={{ prometheus_to_sd_prefix }}/addons
-
--stackdriver-prefix={{ prometheus_to_sd_prefix }}/addons
-
--api-override={{ prometheus_to_sd_endpoint }}
-
--api-override={{ prometheus_to_sd_endpoint }}
-
--whitelisted-metrics=stackdriver_sink_received_entry_count,stackdriver_sink_request_count,stackdriver_sink_successfully_sent_entry_count
-
--source=event_exported:http://localhost:80?whitelisted=stackdriver_sink_received_entry_count,stackdriver_sink_request_count,stackdriver_sink_successfully_sent_entry_count
volumeMounts
:
-
--pod-id=$(POD_NAME)
-
name
:
ssl-certs
-
--namespace-id=$(POD_NAMESPACE)
mountPath
:
/etc/ssl/certs
env
:
-
name
:
POD_NAME
valueFrom
:
fieldRef
:
fieldPath
:
metadata.name
-
name
:
POD_NAMESPACE
valueFrom
:
fieldRef
:
fieldPath
:
metadata.namespace
# END_PROMETHEUS_TO_SD
# END_PROMETHEUS_TO_SD
terminationGracePeriodSeconds
:
30
terminationGracePeriodSeconds
:
30
volumes
:
volumes
:
...
...
cluster/addons/fluentd-gcp/fluentd-gcp-ds.yaml
View file @
5b62eb29
...
@@ -92,14 +92,23 @@ spec:
...
@@ -92,14 +92,23 @@ spec:
fi;
fi;
# BEGIN_PROMETHEUS_TO_SD
# BEGIN_PROMETHEUS_TO_SD
-
name
:
prometheus-to-sd-exporter
-
name
:
prometheus-to-sd-exporter
image
:
gcr.io/google-containers/prometheus-to-sd:v0.
1.3
image
:
gcr.io/google-containers/prometheus-to-sd:v0.
2.2
command
:
command
:
-
/monitor
-
/monitor
-
--component=fluentd
-
--target-port=31337
-
--stackdriver-prefix={{ prometheus_to_sd_prefix }}/addons
-
--stackdriver-prefix={{ prometheus_to_sd_prefix }}/addons
-
--api-override={{ prometheus_to_sd_endpoint }}
-
--api-override={{ prometheus_to_sd_endpoint }}
-
--whitelisted-metrics=stackdriver_successful_requests_count,stackdriver_failed_requests_count,stackdriver_ingested_entries_count,stackdriver_dropped_entries_count
-
--source=fluentd:http://localhost:31337?whitelisted=stackdriver_successful_requests_count,stackdriver_failed_requests_count,stackdriver_ingested_entries_count,stackdriver_dropped_entries_count
-
--pod-id=$(POD_NAME)
-
--namespace-id=$(POD_NAMESPACE)
env
:
-
name
:
POD_NAME
valueFrom
:
fieldRef
:
fieldPath
:
metadata.name
-
name
:
POD_NAMESPACE
valueFrom
:
fieldRef
:
fieldPath
:
metadata.namespace
# END_PROMETHEUS_TO_SD
# END_PROMETHEUS_TO_SD
nodeSelector
:
nodeSelector
:
beta.kubernetes.io/fluentd-ds-ready
:
"
true"
beta.kubernetes.io/fluentd-ds-ready
:
"
true"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment