Skip to content

tiagojsrios/Aspire.Extensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aspire.InfluxDb

How to use

The simplest way to start using this integration in your .NET Aspire host is by simply adding the InfluxDb resource to the DistributedApplicationBuilder.

IResourceBuilder<InfluxDbResource> resource = builder.AddInfluxDb("InfluxDb");

However, the package also has a set of extension methods - located in the InfluxDbResourceBuilderExtensions class - which allows you to configure the container on startup. These extension methods will set the correct environment variables based on what you are configuring.

IResourceBuilder<InfluxDbResource> resource = builder.AddInfluxDb("InfluxDb")
    .WithSetupMode("setup")
    .WithUsername("admin")
    .WithPassword("password")
    .WithOrganization("organization")
    .WithBucket("bucket");

For a more detailed explanation on how you can configure the container via environment variables, you can check InfluxDb's documentation.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages