Skip to content

problem in pushing metrics to statsd from .NET-CORE application #37

@psprasenjit903

Description

@psprasenjit903

framework : dotnetcore 2.0, library used : Graphite.dll 1.3.0, System.Configuration.ConfigurationManager 4.5.0

I am trying to push application metrics to statsd using the following configuration:

app.config settings:
<configSections>
<section name="graphite" type="Graphite.Configuration.GraphiteConfiguration, Graphite" />
</configSections>
<graphite xmlns="http://github.com/peschuster/Graphite/Configuration">
<statsd address="10.32.2.9" port="8125" prefixKey="dapp.metrics" />
</graphite>

This is working fine from my local machine which is in windows 8.1.

Throwing the following exception when hosting it in azure windows server 2012:

System.InvalidOperationException: statsd pipe is not configured at Graphite.ChannelFactory.CreateChannel(String type, String target, Single sampling at Graphite.MetricsPipe.ReportCounter(String key, Int64 value, Single sampling at MyApplication.GraphiteMetricPublisher.PublishCount(String key)

In azure windows server 2016, no exception is getting thrown but metrics is also not pushed to statsd.

From all the above mentioned machines I am able to push data to statsd using bash script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions