-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Metrics, dashboards and docs
- Loading branch information
Showing
30 changed files
with
5,530 additions
and
8 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
version: '2.3' | ||
services: | ||
istio_is_ready: | ||
image: tianon/true | ||
depends_on: | ||
istio: | ||
condition: service_healthy | ||
istio: | ||
image: nginx:alpine | ||
ports: | ||
- 8080 | ||
volumes: | ||
- ./nginx.conf:/etc/nginx/nginx.conf | ||
- ./istiod.txt:/www/data/metrics/istiod.txt | ||
- ./proxy.txt:/www/data/metrics/proxy.txt | ||
healthcheck: | ||
interval: 1s | ||
retries: 120 | ||
timeout: 120s | ||
test: |- | ||
curl -f -s http://localhost:8080/metrics/ -o /dev/null |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
worker_processes 1; | ||
|
||
events { worker_connections 1024; } | ||
|
||
http { | ||
sendfile on; | ||
|
||
server { | ||
listen 8080; | ||
|
||
root /www/data; | ||
|
||
location /metrics { | ||
autoindex on; | ||
} | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
8 changes: 8 additions & 0 deletions
8
packages/istio/data_stream/istiod_metrics/_dev/test/system/test-default-config.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
service: istio | ||
data_stream: | ||
vars: | ||
period: 1s | ||
hosts: | ||
- "http://{{Hostname}}:8080" | ||
metrics_path: "/metrics/istiod.txt" | ||
condition: "true" |
20 changes: 20 additions & 0 deletions
20
packages/istio/data_stream/istiod_metrics/agent/stream/stream.yml.hbs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
metricsets: ["collector"] | ||
period: {{period}} | ||
hosts: | ||
{{#each hosts}} | ||
- {{this}} | ||
{{/each}} | ||
condition: {{ condition }} | ||
{{#if metrics_path}} | ||
metrics_path: {{metrics_path}} | ||
{{/if}} | ||
metrics_filters.exclude: | ||
{{#each metrics_filters.exclude}} | ||
- {{this}} | ||
{{/each}} | ||
metrics_filters.include: | ||
{{#each metrics_filters.include}} | ||
- {{this}} | ||
{{/each}} | ||
use_types: true | ||
rate_counters: true |
34 changes: 34 additions & 0 deletions
34
packages/istio/data_stream/istiod_metrics/elasticsearch/ingest_pipeline/default.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
description: Pipeline for renaming object | ||
processors: | ||
- remove: | ||
field: | ||
- metricset.name | ||
- service.address | ||
- service.type | ||
ignore_missing: true | ||
- set: | ||
field: ecs.version | ||
value: '8.4.0' | ||
- set: | ||
field: event.module | ||
value: istio | ||
- set: | ||
field: event.kind | ||
value: metric | ||
- rename: | ||
field: prometheus.labels | ||
target_field: istio.istiod.labels | ||
ignore_missing: true | ||
- set: | ||
field: istio.istiod.labels.job | ||
value: istio | ||
override: true | ||
- rename: | ||
field: prometheus | ||
target_field: istio.istiod.metrics | ||
ignore_missing: true | ||
on_failure: | ||
- set: | ||
field: error.message | ||
value: '{{ _ingest.on_failure_message }}' |
18 changes: 18 additions & 0 deletions
18
packages/istio/data_stream/istiod_metrics/fields/base-fields.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
- name: data_stream.type | ||
type: constant_keyword | ||
description: Data stream type. | ||
- name: data_stream.dataset | ||
type: constant_keyword | ||
description: Data stream dataset. | ||
- name: data_stream.namespace | ||
type: constant_keyword | ||
description: Data stream namespace. | ||
- name: '@timestamp' | ||
type: date | ||
description: Event timestamp. | ||
- name: event.module | ||
type: constant_keyword | ||
description: Event module | ||
- name: event.dataset | ||
type: constant_keyword | ||
description: Event dataset |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- name: ecs.version | ||
external: ecs | ||
- name: error.message | ||
external: ecs | ||
- name: event.ingested | ||
external: ecs | ||
- name: event.kind | ||
external: ecs |
35 changes: 35 additions & 0 deletions
35
packages/istio/data_stream/istiod_metrics/fields/fields.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
- name: istio.istiod | ||
type: group | ||
fields: | ||
- name: labels.* | ||
type: object | ||
object_type: keyword | ||
description: | | ||
Istiod metric labels | ||
- name: istio.istiod.metrics.*.value | ||
type: object | ||
object_type: double | ||
object_type_mapping_type: "*" | ||
description: > | ||
Istiod gauge metric | ||
- name: istio.istiod.metrics.*.counter | ||
type: object | ||
object_type: double | ||
object_type_mapping_type: "*" | ||
description: > | ||
Istiod counter metric | ||
- name: istio.istiod.metrics.*.rate | ||
type: object | ||
object_type: double | ||
object_type_mapping_type: "*" | ||
description: > | ||
Istiod rated counter metric | ||
- name: istio.istiod.metrics.*.histogram | ||
type: object | ||
object_type: histogram | ||
object_type_mapping_type: "*" | ||
description: >- | ||
Istiod histogram metric |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
title: "Istiod Metrics" | ||
release: experimental | ||
type: metrics | ||
streams: | ||
- input: prometheus/metrics | ||
title: Istiod metrics | ||
description: Collect Istiod metrics | ||
vars: | ||
- name: period | ||
type: text | ||
title: Period | ||
multi: false | ||
required: true | ||
show_user: true | ||
default: 10s | ||
- name: hosts | ||
type: text | ||
title: Hosts | ||
multi: true | ||
required: true | ||
show_user: true | ||
default: | ||
- ${kubernetes.pod.ip}:15014 | ||
- name: metrics_path | ||
type: text | ||
title: Metrics Path | ||
multi: false | ||
required: true | ||
show_user: true | ||
default: | ||
- /metrics | ||
- name: condition | ||
title: Condition | ||
description: Condition to filter when to apply this datastream | ||
type: text | ||
multi: false | ||
required: true | ||
show_user: true | ||
default: ${kubernetes.labels.app} == 'istiod' and ${kubernetes.annotations.prometheus.io/scrape} == 'true' | ||
- name: metrics_filters.exclude | ||
type: text | ||
title: Metrics Filters Exclude | ||
multi: true | ||
required: false | ||
show_user: true | ||
default: | ||
- "^up$" | ||
- name: metrics_filters.include | ||
type: text | ||
title: Metrics Filters Include | ||
multi: true | ||
required: false | ||
show_user: true | ||
default: | ||
- "galley_*" | ||
- "pilot_*" | ||
- "citadel_*" | ||
- "istio_*" |
55 changes: 55 additions & 0 deletions
55
packages/istio/data_stream/istiod_metrics/sample_event.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"istio": { | ||
"istiod": { | ||
"metrics": { | ||
"pilot_xds_config_size_bytes": { | ||
"histogram": { | ||
"counts": [ | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0 | ||
], | ||
"values": [ | ||
0.5, | ||
5000.5, | ||
505000, | ||
2500000, | ||
7000000, | ||
25000000, | ||
70000000 | ||
] | ||
} | ||
} | ||
}, | ||
"labels": { | ||
"instance": "10.124.0.8:15014", | ||
"type": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration", | ||
"job": "istio" | ||
} | ||
} | ||
}, | ||
"@timestamp": "2022-09-23T09:30:56.055Z", | ||
"ecs": { | ||
"version": "8.4.0" | ||
}, | ||
"data_stream": { | ||
"namespace": "default", | ||
"type": "metrics", | ||
"dataset": "istio.istiod_metrics" | ||
}, | ||
"metricset": { | ||
"period": 10000 | ||
}, | ||
"event": { | ||
"duration": 10806443, | ||
"agent_id_status": "verified", | ||
"kind": "metric", | ||
"ingested": "2022-09-23T09:30:57Z", | ||
"module": "istio", | ||
"dataset": "istio.istiod_metrics" | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
packages/istio/data_stream/proxy_metrics/_dev/test/system/test-default-config.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
service: istio | ||
data_stream: | ||
vars: | ||
period: 1s | ||
hosts: | ||
- "http://{{Hostname}}:8080" | ||
metrics_path: "/metrics/proxy.txt" | ||
condition: "true" |
Oops, something went wrong.