question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Better docs for custom metrics

See original GitHub issue

Configuring custom metrics for the postgres check is quite complex, users get often confused by the usage of the %s char in the query field and how the descriptors and metrics elements are used to compose the final query.

The example in the conf.yaml.example file could be improved adding details on how the check composes the query and what’s the actual sql code produced.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
mascicommented, Oct 18, 2017

Also we should point out wildcards on LIKE clauses breaks the string interpolation in Python and should be escaped with the % char:

Bad: SELECT %s FROM foo WHERE bar LIKE '%baz%' Good: SELECT %s FROM foo WHERE bar LIKE '%%baz%%'

0reactions
mascicommented, Sep 6, 2018

Closing since we’re deprecating the current configuration in favor of “custom queries”, see https://github.com/DataDog/integrations-core/pull/2043

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introducing Improved BetterDocs Analytics: NEW UI & More
These metrics can give you an overall understanding of how your knowledge base is performing at any given time. View Leading, Top Performing ......
Read more >
Custom metrics | Cloud Monitoring | Google Cloud
You can create custom metrics by using the Cloud Monitoring API directly. ... For information about reading metric data, see the following documents:....
Read more >
Custom metrics | AppSignal documentation
With different types of metrics (gauges, counters and measurements) you can track any kind of data from your apps and tag them with...
Read more >
azure-docs/how-to-add-custom-metrics.md at main - GitHub
Gather custom metrics from your IoT Edge modules in addition to the built-in metrics that the system modules provide. The built-in metrics provide...
Read more >
Publishing custom metrics - Amazon CloudWatch
High resolution, with data at a granularity of one second. Metrics produced by AWS services are standard resolution by default. When you publish...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found