Skip to content

Commit

Permalink
Fix typos (#242)
Browse files Browse the repository at this point in the history
Found via `typos --hidden --format brief`
  • Loading branch information
kianmeng authored Jul 31, 2024
1 parent 1f6467c commit efddbfe
Show file tree
Hide file tree
Showing 22 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- All plugin distribution buckets have been redefined. The reason for this being that prior to PromEx 1.7, some of the
distribution buckets were a bit wasteful and were not adding value in terms of metrics data points. With this change,
users should notice a decline in data point cardinality without compromising resolution.
- Application plugin has changed how it fetches dependency information. It is now using `Applciation.spec/1` to get the
- Application plugin has changed how it fetches dependency information. It is now using `Application.spec/1` to get the
list of applications that are started with your application. This should reduce noise in the Grafana dashboard as all
the default OTP and Elixir applications will not show up.
- All Grafana dashboard now have a default panel sort order where the largest timeseries plot is first in the list when
Expand Down
8 changes: 4 additions & 4 deletions benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Usage: $0 OPTIONS
OPTIONS:
-c Concurrent connections (default: 1)
-k Enable keepalive (defalt: no)
-k Enable keepalive (default: no)
-E Extra parameters
-n Number of requests (default: 1)
-u Url to test (mandatory)
Expand All @@ -49,8 +49,8 @@ Will create the following results:

#### Test results

* [values.csv](exmple_results/values.csv)
* [percentages.csv](exmple_results/values.csv)
* [values.csv](example_results/values.csv)
* [percentages.csv](example_results/values.csv)

#### Test summary results
* summary.txt
Expand Down Expand Up @@ -143,7 +143,7 @@ Usage: ./ab-graph_scale.sh OPTIONS
OPTIONS:
-c Start concurrent connections at (default: 5)
-e Stop concurrent connections at (defalt: 25)
-e Stop concurrent connections at (default: 25)
-k Enable keepalive connections (default: no)
-s Concurrent connections increment step (default: 5)
-n Number of requests (default: 500)
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/ab-graph.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Usage: $0 OPTIONS
OPTIONS:
-c Concurrent connections (default: 1)
-k Enable keepalive (defalt: no)
-k Enable keepalive (default: no)
-E Extra parameters
-n Number of requests (default: 1)
-u Url to test (mandatory)
Expand Down Expand Up @@ -93,7 +93,7 @@ echo -e "${0} - version ${VERSION}\n"


if [ "${CONCURRENCY}" == "" ]; then
echo "No concurrency set, using default value of ${DEFAULT_CONCURRENCY} simultanious clients"
echo "No concurrency set, using default value of ${DEFAULT_CONCURRENCY} simultaneous clients"
CONCURRENCY=${DEFAULT_CONCURRENCY}
fi

Expand Down
6 changes: 3 additions & 3 deletions benchmarks/ab-graph_scale.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ SLEEP=60
usage()
{
cat << EOF
Helper script for ab-graph that can run multple configurable runs in one go.
Helper script for ab-graph that can run multiple configurable runs in one go.
Usage: $0 OPTIONS
OPTIONS:
-c Start concurrent connections at (default: 5)
-e Stop concurrent connections at (defalt: 25)
-e Stop concurrent connections at (default: 25)
-k Enable keepalive connections (default: no)
-s Concurrent connections increment step (default: 5)
-n Number of requests (default: 500)
Expand All @@ -24,7 +24,7 @@ OPTIONS:
-h Print help.
-V Debug mode.
This script will do multple test runs of ab-graph incrementing the concurrent
This script will do multiple test runs of ab-graph incrementing the concurrent
connections until the limit set by -e option is reached.
EOF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ deleteDatasources:
orgId: 1

# list of datasources to insert/update depending
# whats available in the database
# what's available in the database
datasources:
# <string, required> name of the datasource. Required
- name: prometheus
Expand Down
2 changes: 1 addition & 1 deletion example_applications/web_app/lib/web_app/prom_ex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule WebApp.PromEx do
2. Add this module to your application supervision tree. It should be one of the first
things that is started so that no Telemetry events are missed. For example, if PromEx
is started after your Repo module, you will miss Ecto's init events and the dashbaords
is started after your Repo module, you will miss Ecto's init events and the dashboards
will be missing some data points:
```
def start(_type, _args) do
Expand Down
2 changes: 1 addition & 1 deletion lib/prom_ex/grafana_client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ defmodule PromEx.GrafanaClient do
unknown_response ->
Logger.warning("Received an unhandled response from Grafana because: #{inspect(unknown_response)}")

{:error, :unkown}
{:error, :unknown}
end
end

Expand Down
2 changes: 1 addition & 1 deletion priv/beam.json.eex
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "<%= @datasource_id %>",
"description": "The number of context switches that have occured along with the number of reductions.",
"description": "The number of context switches that have occurred along with the number of reductions.",
"fieldConfig": {
"defaults": {
"custom": {},
Expand Down
4 changes: 2 additions & 2 deletions priv/oban.json.eex
Original file line number Diff line number Diff line change
Expand Up @@ -2559,7 +2559,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "<%= @datasource_id %>",
"description": "The number of circuit breaker trip events that occured along with what component tripped the breaker.",
"description": "The number of circuit breaker trip events that occurred along with what component tripped the breaker.",
"fieldConfig": {
"defaults": {
"custom": {}
Expand Down Expand Up @@ -2652,7 +2652,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "<%= @datasource_id %>",
"description": "The number of circuit breaker open events that occured along with what component tripped the breaker.",
"description": "The number of circuit breaker open events that occurred along with what component tripped the breaker.",
"fieldConfig": {
"defaults": {
"custom": {}
Expand Down
2 changes: 1 addition & 1 deletion test/prom_ex/lifecycle_annotator_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ defmodule PromEx.LifecycleAnnotatorTest do
# Ensure we get through the continue
:sys.get_state(pid)

# Ensure we get another post for ther terminate callback
# Ensure we get another post for the terminate callback
Bypass.expect(bypass, "POST", "/api/annotations", fn conn ->
Plug.Conn.resp(conn, 200, response_payload)
end)
Expand Down
2 changes: 1 addition & 1 deletion test/prom_ex/plugins/application_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule PromEx.Plugins.ApplicationTest do
start_supervised!(WebApp.PromEx)
Events.execute_all(:application)

Metrics.assert_prom_ex_metics(WebApp.PromEx, :application)
Metrics.assert_prom_ex_metrics(WebApp.PromEx, :application)
end

describe "event_metrics/1" do
Expand Down
2 changes: 1 addition & 1 deletion test/prom_ex/plugins/beam_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defmodule PromEx.Plugins.BeamTest do
start_supervised!(WebApp.PromEx)
Events.execute_all(:beam)

Metrics.assert_prom_ex_metics(WebApp.PromEx, :beam)
Metrics.assert_prom_ex_metrics(WebApp.PromEx, :beam)
end

describe "event_metrics/1" do
Expand Down
2 changes: 1 addition & 1 deletion test/prom_ex/plugins/broadway_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule PromEx.Plugins.BroadwayTest do
start_supervised!(WebApp.PromEx)
Events.execute_all(:broadway)

Metrics.assert_prom_ex_metics(WebApp.PromEx, :broadway)
Metrics.assert_prom_ex_metrics(WebApp.PromEx, :broadway)
end

describe "event_metrics/1" do
Expand Down
2 changes: 1 addition & 1 deletion test/prom_ex/plugins/ecto_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ defmodule PromEx.Plugins.EctoTest do
start_supervised!(WebApp.PromEx)
Events.execute_all(:ecto)

Metrics.assert_prom_ex_metics(WebApp.PromEx, :ecto)
Metrics.assert_prom_ex_metrics(WebApp.PromEx, :ecto)
end
end
2 changes: 1 addition & 1 deletion test/prom_ex/plugins/oban_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule PromEx.Plugins.ObanTest do

Events.execute_all(:oban)

Metrics.assert_prom_ex_metics(WebApp.PromEx, :oban)
Metrics.assert_prom_ex_metrics(WebApp.PromEx, :oban)
end

describe "event_metrics/1" do
Expand Down
2 changes: 1 addition & 1 deletion test/prom_ex/plugins/phoenix_live_view_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defmodule PromEx.Plugins.PhoenixLiveViewTest do
start_supervised!(WebApp.PromEx)
Events.execute_all(:phoenix_live_view)

Metrics.assert_prom_ex_metics(WebApp.PromEx, :phoenix_live_view)
Metrics.assert_prom_ex_metrics(WebApp.PromEx, :phoenix_live_view)
end

describe "event_metrics/1" do
Expand Down
2 changes: 1 addition & 1 deletion test/prom_ex/plugins/phoenix_multi_router_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ defmodule PromEx.Plugins.PhoenixMultiRouterTest do
start_supervised!(WebApp.PromEx)
Events.execute_all(:phoenix_multi_router)

Metrics.assert_prom_ex_metics(WebApp.PromEx, :phoenix_multi_router)
Metrics.assert_prom_ex_metrics(WebApp.PromEx, :phoenix_multi_router)
end
end
4 changes: 2 additions & 2 deletions test/prom_ex/plugins/phoenix_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ defmodule PromEx.Plugins.PhoenixTest do
start_supervised!(WebApp.PromExSingleEndpoint)
Events.execute_all(:phoenix)

Metrics.assert_prom_ex_metics(WebApp.PromExSingleEndpoint, :phoenix)
Metrics.assert_prom_ex_metrics(WebApp.PromExSingleEndpoint, :phoenix)
end

test "telemetry events are accumulated for multiple endpoint configuration" do
start_supervised!(WebApp.PromExMultipleEndpoint)
Events.execute_all(:phoenix)

Metrics.assert_prom_ex_metics(WebApp.PromExMultipleEndpoint, :phoenix)
Metrics.assert_prom_ex_metrics(WebApp.PromExMultipleEndpoint, :phoenix)
end

test "channel events normalize according to normalize_event_name" do
Expand Down
2 changes: 1 addition & 1 deletion test/prom_ex/plugins/plug_cowboy_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ defmodule PromEx.Plugins.PlugCowboyTest do
start_supervised!(WebApp.PromEx)
Events.execute_all(:plug_cowboy)

Metrics.assert_prom_ex_metics(WebApp.PromEx, :plug_cowboy)
Metrics.assert_prom_ex_metrics(WebApp.PromEx, :plug_cowboy)
end

describe "event_metrics/1" do
Expand Down
2 changes: 1 addition & 1 deletion test/prom_ex/plugins/plug_router_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule PromEx.Plugins.PlugRouterTest do
start_supervised!(TestApp.PromEx)
Events.execute_all(:plug_router)

Metrics.assert_prom_ex_metics(TestApp.PromEx, :plug_router)
Metrics.assert_prom_ex_metrics(TestApp.PromEx, :plug_router)
end

describe "event_metrics/1" do
Expand Down
2 changes: 1 addition & 1 deletion test/prom_ex_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ defmodule PromExTest do
# Give the manual metrics manager a chance to capture application metrics
Process.sleep(1_000)

# Get supervsion tree child proceses
# Get supervsion tree child processes
manual_metrics_pid = Process.whereis(DefaultPromExSetUp.__manual_metrics_name__())
metrics_collector_pid = Process.whereis(DefaultPromExSetUp.__metrics_collector_name__())
dashboard_uploader_pid = Process.whereis(DefaultPromExSetUp.__dashboard_uploader_name__())
Expand Down
4 changes: 2 additions & 2 deletions test/support/metrics.ex
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ defmodule PromEx.Test.Support.Metrics do
end

@doc false
@spec assert_prom_ex_metics(module(), atom()) :: :ok
def assert_prom_ex_metics(prom_ex_module, expected_metrics_lookup) do
@spec assert_prom_ex_metrics(module(), atom()) :: :ok
def assert_prom_ex_metrics(prom_ex_module, expected_metrics_lookup) do
collected_metrics = read_collected(prom_ex_module)

expected_metrics = read_expected(expected_metrics_lookup)
Expand Down

0 comments on commit efddbfe

Please sign in to comment.