Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
psprasenjit903 opened this issue Aug 13, 2018 · 0 comments
Open

Comments

@psprasenjit903
Copy link

psprasenjit903 commented Aug 13, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant