This repository has been archived by the owner on Nov 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #177 from STCLab-Inc/176-structure-a-example-direc…
…tory chore: structure a example directory
- Loading branch information
Showing
13 changed files
with
68 additions
and
0 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,5 @@ | ||
**Examples for Wave Autoscale** | ||
|
||
- Metrics | ||
- Scaling Components | ||
- Plan Triggers |
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 @@ | ||
**Metrics Collected By Telegraf** |
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 @@ | ||
**Metrics Collected By Vector** |
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,19 @@ | ||
# https://vector.dev/docs/reference/configuration/sources/prometheus_scrape/#query | ||
--- | ||
kind: Metric | ||
id: vector_prometheus_metrics | ||
collector: vector | ||
metadata: | ||
sources: | ||
my_source_id_1: | ||
type: prometheus_scrape | ||
endpoints: ["http://localhost:9090/metrics"] | ||
scrape_interval_secs: 15 | ||
query: | ||
"match[]": | ||
- '{job="somejob"}' | ||
- '{__name__=~"job:.*"}' | ||
sinks: | ||
my_sinks_id: | ||
type: wave-autoscale | ||
inputs: ["my_source_id_1"] # last transform id or source id |
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,33 @@ | ||
# source: https://vector.dev/docs/reference/configuration/sources/http_client/ | ||
# transform: https://vector.dev/docs/reference/configuration/transforms/remap/ | ||
--- | ||
kind: Metric | ||
id: vector_prometheus_metrics | ||
collector: vector | ||
metadata: | ||
sources: | ||
my_source_id_1: | ||
type: http_client | ||
endpoint: "http://34.64.190.189:9090/api/v1/query" | ||
scrape_interval_secs: 30 | ||
query: | ||
"query": | ||
[ | ||
'rate(istio_request_duration_milliseconds_sum{destination_workload="node-server-dp",response_code="200",reporter="destination"}[1m])', | ||
] | ||
transforms: | ||
my_transforms_id_1: | ||
inputs: ["my_source_id_1"] | ||
type: remap | ||
source: |- | ||
. = parse_json!(.message) | ||
tally = [] | ||
for_each(array!(.data.result)) -> |_index, value| { | ||
tally = push(tally, {\"name\": \"name_1\", \"tags\": value.metric, \"timestamp\": value.value[0], \"gauge\": {\"value\" : value.value[1]}}) | ||
} | ||
tally | ||
. = tally | ||
sinks: | ||
my_sinks_id: | ||
type: wave-autoscale | ||
inputs: ["my_transforms_id_1"] # last transform id or source id |
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 @@ | ||
**AWS Scaling Components** |
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 @@ | ||
**Azure Scaling Components** |
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 @@ | ||
**Google Cloud Scaling Components** |
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 @@ | ||
**Kubernetes Scaling Components** |
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 @@ | ||
**Triggers** |
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 @@ | ||
**Kubernetes Scaling Components** |
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 @@ | ||
**Kubernetes Scaling Components** |