Skip to content

Commit

Permalink
Remove statsd
Browse files Browse the repository at this point in the history
  • Loading branch information
ejsmith committed Jul 31, 2023
1 parent daed593 commit ef3b7f8
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 87 deletions.
2 changes: 0 additions & 2 deletions docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ services:
EX_ConnectionStrings__Elasticsearch: server=http://elasticsearch:9200
#EX_ConnectionStrings__Email: smtps://user:[email protected]:587
EX_ConnectionStrings__MessageBus: provider=redis
#EX_ConnectionStrings__Metrics: provider=statsd;server=statsd;
EX_ConnectionStrings__Queue: provider=redis
EX_ConnectionStrings__Redis: server=redis,abortConnect=false
#ASPNETCORE_URLS: http://+;https://+
Expand Down Expand Up @@ -44,7 +43,6 @@ services:
EX_ConnectionStrings__Elasticsearch: server=http://elasticsearch:9200
EX_ConnectionStrings__Email: smtp://localhost:1025
EX_ConnectionStrings__MessageBus: provider=redis
#EX_ConnectionStrings__Metrics: provider=statsd;server=statsd;
EX_ConnectionStrings__Queue: provider=redis
EX_ConnectionStrings__Redis: server=redis,abortConnect=false
EX_ConnectionStrings__Storage: provider=folder;path=/app/storage
Expand Down
2 changes: 0 additions & 2 deletions k8s/ex-prod-tasks.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ helm upgrade `
--set "queue.connectionString=$QUEUE_CONNECTIONSTRING" `
--set "redis.connectionString=$REDIS_CONNECTIONSTRING" `
--set "storage.connectionString=$STORAGE_CONNECTIONSTRING" `
--set "statsd.token=$STATSD_TOKEN" `
--set "statsd.user=$STATSD_USER" `
--set "config.EX_ApplicationInsightsKey=$EX_ApplicationInsightsKey" `
--set "config.EX_ConnectionStrings__OAuth=$EX_ConnectionStrings__OAuth" `
--set "config.EX_ExceptionlessApiKey=$EX_ExceptionlessApiKey" `
Expand Down
2 changes: 1 addition & 1 deletion k8s/ex-prod-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ config:
EX_Apm__EnableMetrics: "true"
EX_Apm__EnableTracing: "true"
EX_Apm__FullDetails: "true"
EX_Apm__Insecure: "false"
EX_Apm__Insecure: "true"
2 changes: 0 additions & 2 deletions k8s/ex-setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@ helm install ex-$ENV .\exceptionless --namespace ex-$ENV --values ex-$ENV-values
--set "queue.connectionString=$QUEUE_CONNECTIONSTRING" `
--set "redis.connectionString=$REDIS_CONNECTIONSTRING" `
--set "storage.connectionString=$STORAGE_CONNECTIONSTRING" `
--set "statsd.token=$STATSD_TOKEN" `
--set "statsd.user=$STATSD_USER" `
--set "config.EX_ApplicationInsightsKey=$EX_ApplicationInsightsKey" `
--set "config.EX_ConnectionStrings__OAuth=$EX_ConnectionStrings__OAuth" `
--set "config.EX_ExceptionlessApiKey=$EX_ExceptionlessApiKey" `
Expand Down
4 changes: 1 addition & 3 deletions k8s/exceptionless/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ data:
EX_ConnectionStrings__Storage: {{ default "provider=folder;path=/app/storage" .Values.storage.connectionString }}
EX_ConnectionStrings__Cache: {{ default "provider=redis;" .Values.cache.connectionString }}
EX_ConnectionStrings__MessageBus: {{ default "provider=redis;" .Values.messagebus.connectionString }}
{{- if .Values.statsd.token }}
EX_ConnectionStrings__Metrics: provider=statsd;server={{ template "exceptionless.fullname" . }}-statsd
{{- else if .Values.metrics.connectionString }}
{{- if .Values.metrics.connectionString }}
EX_ConnectionStrings__Metrics: {{ .Values.metrics.connectionString }}
{{- end }}
EX_ConnectionStrings__Queue: {{ default "provider=redis;" .Values.queue.connectionString }}
Expand Down
67 changes: 0 additions & 67 deletions k8s/exceptionless/templates/statsd.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions k8s/exceptionless/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ jobs:
eventUsage:
replicaCount: 1

statsd:
token:
user:

config: {}
# key: value

Expand Down
2 changes: 0 additions & 2 deletions samples/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ services:
EX_ConnectionStrings__Cache: provider=redis
EX_ConnectionStrings__Elasticsearch: server=http://elasticsearch:9200
EX_ConnectionStrings__MessageBus: provider=redis
#EX_ConnectionStrings__Metrics: provider=statsd;server=statsd;
EX_ConnectionStrings__Queue: provider=redis
EX_ConnectionStrings__Redis: server=redis,abortConnect=false
EX_ConnectionStrings__Storage: provider=folder;path=/app/storage
Expand Down Expand Up @@ -39,7 +38,6 @@ services:
EX_ConnectionStrings__Elasticsearch: server=http://elasticsearch:9200
#EX_ConnectionStrings__Email: smtps://user:[email protected]:587
EX_ConnectionStrings__MessageBus: provider=redis
#EX_ConnectionStrings__Metrics: provider=statsd;server=statsd;
EX_ConnectionStrings__Queue: provider=redis
EX_ConnectionStrings__Redis: server=redis,abortConnect=false
EX_ConnectionStrings__Storage: provider=folder;path=/app/storage
Expand Down
4 changes: 1 addition & 3 deletions src/Exceptionless.Insulation/Bootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,7 @@ private static void RegisterMessageBus(IServiceCollection container, MessageBusO

private static IConnectionMultiplexer GetRedisConnection(Dictionary<string, string> options)
{
// TODO: Remove this extra config parse step when sentinel bug is fixed
var config = ConfigurationOptions.Parse(options.GetString("server"));
return ConnectionMultiplexer.Connect(config);
return ConnectionMultiplexer.Connect(options.GetString("server"));
}

private static void RegisterQueue(IServiceCollection container, QueueOptions options, bool runMaintenanceTasks)
Expand Down
3 changes: 2 additions & 1 deletion src/Exceptionless.Insulation/Exceptionless.Insulation.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<PackageReference Include="Foundatio.Minio" Version="10.6.1" />
<PackageReference Include="Foundatio.RabbitMQ" Version="10.6.1" />
<PackageReference Include="Foundatio.Redis" Version="10.6.1" />
<PackageReference Include="StackExchange.Redis" Version="2.6.122" />
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
Expand All @@ -31,4 +32,4 @@
<Exec Command="dotnet tool restore" StandardOutputImportance="Low" StandardErrorImportance="High" WorkingDirectory="..\.." />
<Exec Command="dotnet husky install" StandardOutputImportance="Low" StandardErrorImportance="High" WorkingDirectory="..\.." />
</Target>
</Project>
</Project>

0 comments on commit ef3b7f8

Please sign in to comment.