Skip to content
This repository was archived by the owner on Jul 18, 2023. It is now read-only.

How to pass Auth Details?  #82

@juliopereirab

Description

@juliopereirab

I have just started working with the library passing points to a local instance. If I switch to an influx instance that requires auth, I simply don't find in the README file how to pass those details to a collector instance. Here's a sample of my code:

        Metrics.Collector = new CollectorConfiguration()
            .Tag.With("host", Environment.MachineName)
            .Batch.AtInterval(TimeSpan.FromSeconds(5))
            .WriteTo.InfluxDB(
                Environment.GetEnvironmentVariable("InfluxDBServer"),
                Environment.GetEnvironmentVariable("InfluxDBDatabase")
            )
            .CreateCollector();

Any suggestions on how to pass auth bearer and password?.

Many thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions