Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples(grafana): update pokeshop grafana sample (#3287)
- Loading branch information
1 parent
ed06964
commit 0b4e213
Showing
4 changed files
with
29 additions
and
18 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
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 |
---|---|---|
@@ -1,32 +1,27 @@ | ||
type: Test | ||
spec: | ||
id: ZVJwkpC4g | ||
id: MnZ_kD7Ig | ||
name: Pokeshop - Import | ||
description: Import a Pokemon | ||
trigger: | ||
type: http | ||
httpRequest: | ||
method: POST | ||
url: http://demo-api:8081/pokemon/import | ||
body: '{"id":6}' | ||
body: "{\"id\":837483}" | ||
headers: | ||
- key: Content-Type | ||
value: application/json | ||
specs: | ||
- selector: span[tracetest.span.type="http" name="GET" http.method="GET"] | ||
name: Validate that the external API does not contain an exception. | ||
assertions: | ||
- attr:span.events not-contains "exception" | ||
- selector: span[tracetest.span.type="http"] | ||
name: "All HTTP Spans: Status code is 200" | ||
assertions: | ||
- attr:http.status_code = 200 | ||
- selector: span[tracetest.span.type="general" name="import pokemon"] | ||
name: Validate that this span always exists after the message queue | ||
assertions: | ||
- attr:tracetest.selected_spans.count = 1 | ||
- attr:span.events not-contains "exception" | ||
- selector: span[tracetest.span.type="database" name="get pokemon_6" db.system="redis" db.operation="get" db.redis.database_index="0"] | ||
name: Validate that Redis is using Charizard. | ||
assertions: | ||
- attr:db.payload = '{"key":"pokemon_6"}' | ||
- selector: span[tracetest.span.type="database" name="create postgres.pokemon" db.system="postgres" db.name="postgres" db.user="postgres" db.operation="create" db.sql.table="pokemon"] | ||
name: Validate that the Postgres has Charizard. | ||
- selector: span[tracetest.span.type="database"] | ||
name: "All Database Spans: Processing time is less than 100ms" | ||
assertions: | ||
- attr:db.result contains "charizard" | ||
- attr:tracetest.span.duration < 100ms |
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