Skip to content

dvvislobokov/better-health-checks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

builder.Services
    .AddBetterHealthChecks(x =>
    {
        x.Add(new KafkaHealthCheck(new KafkaConfig("localhost:9092"), "Kafka-Local"));
        x.Add(new HttpHealthCheck("Google", new HttpConfig("https://google.com", HttpMethod.Get, TimeSpan.FromSeconds(300)), false));
        x.Add(new PostgresHealthCheck("Server=localhost;Port=5434;Database=database;User Id=postgres;Password=pwd;Pooling=true;Minimum Pool Size=0;Maximum Pool Size=100;", TimeSpan.FromSeconds(10), null ));
        x.Add(new IgniteHealthCheck("Ignite-Local", "localhost:10800"));
        return x;
    });
    
    
 app.UseEndpoints(x => x.MapBetterHealthChecks("/health"));

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published