Update prometheus ports to the default 9464 (#3914)

Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>
This commit is contained in:
Michael Maxwell 2022-11-16 18:31:10 -08:00 committed by GitHub
parent 8b72ff037f
commit e0d87376f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 10 deletions

View File

@ -31,10 +31,10 @@ namespace OpenTelemetry.Exporter.Prometheus.Tests
private readonly string meterName = Utils.GetCurrentMethodName();
[Theory]
[InlineData("http://+:9184")]
[InlineData("http://*:9184")]
[InlineData("http://+:9184/")]
[InlineData("http://*:9184/")]
[InlineData("http://+:9464")]
[InlineData("http://*:9464")]
[InlineData("http://+:9464/")]
[InlineData("http://*:9464/")]
[InlineData("https://example.com")]
[InlineData("http://127.0.0.1")]
[InlineData("http://example.com", "https://example.com", "http://127.0.0.1")]

View File

@ -37,7 +37,7 @@ public partial class Program
logger = loggerFactory.CreateLogger<Program>();
Stress(prometheusPort: 9184);
Stress(prometheusPort: 9464);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]

View File

@ -50,7 +50,7 @@ public partial class Program
options => options.UriPrefixes = new string[] { $"http://localhost:9185/" })
.Build();
Stress(prometheusPort: 9184);
Stress(prometheusPort: 9464);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]

View File

@ -31,7 +31,7 @@ public partial class Program
.AddSource(ActivitySource.Name)
.Build();
Stress(prometheusPort: 9184);
Stress(prometheusPort: 9464);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]

View File

@ -22,7 +22,7 @@ public partial class Program
{
public static void Main()
{
Stress(concurrency: 1, prometheusPort: 9184);
Stress(concurrency: 1, prometheusPort: 9464);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]

View File

@ -43,7 +43,7 @@ Running (concurrency = 1), press <Esc> to stop...
The stress test metrics are exposed via
[Prometheus HttpListener](../../src/OpenTelemetry.Exporter.Prometheus.HttpListener/README.md),
which can be accessed via
[http://localhost:9184/metrics/](http://localhost:9184/metrics/).
[http://localhost:9464/metrics/](http://localhost:9464/metrics/).
Following shows a section of the metrics exposed in prometheus format:
@ -82,7 +82,7 @@ public partial class Program
{
public static void Main()
{
Stress(concurrency: 10, prometheusPort: 9184);
Stress(concurrency: 10, prometheusPort: 9464);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]