Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
influxdb
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
1
Merge Requests
1
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
influxdb
Commits
8d810fa7
Unverified
Commit
8d810fa7
authored
4 years ago
by
gitirabassi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding statsd deployment
parent
e74982cd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
106 additions
and
3 deletions
+106
-3
README.md
istio/README.md
+18
-1
istio.yml
istio/istio.yml
+3
-2
statsd.yml
istio/statsd.yml
+85
-0
No files found.
istio/README.md
View file @
8d810fa7
...
@@ -16,8 +16,25 @@ This only runs with `istioctl` version > 1.5
...
@@ -16,8 +16,25 @@ This only runs with `istioctl` version > 1.5
```
```
3.
configure telegraf operator with
`istio`
class
3.
configure telegraf operator with
`istio`
class
> This depends on which output system you desider for the istio metrics
> This depends on which output system you desider for the istio metrics
4.
`kubectl apply -f istio.yml`
4.
Create secret statsd metrics shipping
```yaml
apiVersion: v1
kind: Secret
metadata:
name: monitor
namespace: istio-system
stringData:
ENV: testing
MONITOR_BUCKET: istio
MONITOR_HOST_V2: https://us-west-2-1.aws.cloud2.influxdata.com/
MONITOR_ORG: my-best-organization-in-cloud2
MONITOR_TOKEN: xxxxxxxxxxxxxx
type: Opaque
```
5.
`kubectl apply -f statsd.yml`
6.
`kubectl apply -f istio.yml`
## Reference:
## Reference:
-
https://istio.io/docs/reference/config/istio.operator.v1alpha1/
-
https://istio.io/docs/reference/config/istio.operator.v1alpha1/
-
https://istio.io/docs/ops/deployment/requirements/
This diff is collapsed.
Click to expand it.
istio/istio.yml
View file @
8d810fa7
...
@@ -25,6 +25,7 @@ spec:
...
@@ -25,6 +25,7 @@ spec:
meshConfig
:
meshConfig
:
trustDomain
:
cluster.local
trustDomain
:
cluster.local
enableTracing
:
true
enableTracing
:
true
statsdUdpAddress
:
"
statsd.istio-system.svc:9125"
accessLogFile
:
"
/dev/stdout"
accessLogFile
:
"
/dev/stdout"
accessLogEncoding
:
JSON
accessLogEncoding
:
JSON
defaultConfig
:
defaultConfig
:
...
@@ -99,11 +100,11 @@ spec:
...
@@ -99,11 +100,11 @@ spec:
k8s
:
k8s
:
replicaCount
:
1
replicaCount
:
1
podAnnotations
:
podAnnotations
:
telegraf.influxdata.com/port
:
"
1
4
010"
telegraf.influxdata.com/port
:
"
1
5
010"
telegraf.influxdata.com/class
:
"
istio"
telegraf.influxdata.com/class
:
"
istio"
pilot
:
pilot
:
enabled
:
true
enabled
:
true
k8s
:
k8s
:
podAnnotations
:
podAnnotations
:
telegraf.influxdata.com/port
:
"
1
4
010"
telegraf.influxdata.com/port
:
"
1
5
010"
telegraf.influxdata.com/class
:
"
istio"
telegraf.influxdata.com/class
:
"
istio"
This diff is collapsed.
Click to expand it.
istio/statsd.yml
0 → 100644
View file @
8d810fa7
---
apiVersion
:
v1
kind
:
Service
metadata
:
labels
:
app
:
statsd
name
:
statsd
namespace
:
istio-system
spec
:
ports
:
-
name
:
statsd
port
:
9125
protocol
:
UDP
selector
:
app
:
statsd
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
labels
:
app
:
statsd
name
:
statsd
namespace
:
istio-system
spec
:
replicas
:
3
selector
:
matchLabels
:
app
:
statsd
template
:
metadata
:
annotations
:
sidecar.istio.io/inject
:
"
false"
labels
:
app
:
statsd
spec
:
containers
:
-
envFrom
:
-
secretRef
:
name
:
monitor
image
:
telegraf:1.14
name
:
telegraf
ports
:
-
containerPort
:
9125
name
:
stastd
protocol
:
UDP
resources
:
limits
:
cpu
:
500m
memory
:
500Mi
requests
:
cpu
:
100m
memory
:
100Mi
volumeMounts
:
-
mountPath
:
/etc/telegraf
name
:
telegraf-config
volumes
:
-
configMap
:
name
:
telegraf-config-envoy-statsd
name
:
telegraf-statsd
---
apiVersion
:
v1
data
:
telegraf.conf
:
|+
[[outputs.influxdb_v2]]
urls = ["$MONITOR_HOST_V2"]
token = "$MONITOR_TOKEN"
organization = "$MONITOR_ORG"
bucket = "$MONITOR_BUCKET"
timeout = "60s"
[global_tags]
env = "$ENV"
[[inputs.statsd]]
protocol = "udp"
service_address = ":9125"
[agent]
metric_batch_size = 1000
metric_buffer_limit = 10000
debug = false
[[inputs.internal]]
kind
:
ConfigMap
metadata
:
labels
:
app
:
statsd
name
:
telegraf-config-envoy-statsd
namespace
:
istio-system
This diff is collapsed.
Click to expand it.
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