Questions tagged [datadog]

Datadog is a monitoring service for IT and DevOps.

1053 questions
9
votes
1 answer

Datadog Grok Parsing - extracting fields from nested JSON

Is it possible to extract json fields that are nested inside a log? Sample I've been work on: thread-191555 app.main - [cid: 2cacd6f9-546d-41ew-a7ce-d5d41b39eb8f, uid: e6ffc3b0-2f39-44f7-85b6-1abf5f9ad970] Request: protocol=[HTTP/1.0] method=[POST]…
user3285241
  • 319
  • 2
  • 3
  • 18
9
votes
4 answers

How to stringify JSON using JQ

Using JQ I would like to take a complex JSON object that includes JSON embedded as strings and then turn it all into a valid string I can easily embed in other JSON objects. For example, lets say I have this json object: { "region": "CA", …
Alex Cohen
  • 5,596
  • 16
  • 54
  • 104
9
votes
1 answer

Display count for a day using counter metrics in data dog

We have a counter metric in one our micro services which pushes data to DataDog. I want to display the total count for given time frame, and also the count per day (X axis would have the date and Y axis would have count). How do we achive this? I…
Selvakumar Ponnusamy
  • 5,363
  • 7
  • 40
  • 78
8
votes
0 answers

How do I add a label for the y-axis in Datadog?

I have a chart for a custom metric like this one: How can I add a label for the y-axis? I don't see any option in the dashboard settings. Exploring other metrics, I see they already have such label. For example, kubernetes.cpu.usage.total shows…
user4093955
8
votes
0 answers

can Datadog be used to display the difference in time between two events or logs?

I am using Datadog's count API and if I have 2 events emitted with the same tag (like a UUID), I want to plot a distribution graph of the difference in time between these two events. (e.g. I have an API call and corresponding webhook that I receive…
bubbles
  • 81
  • 2
8
votes
1 answer

Send log messages from datadog to slack channel

Is it possible to send log messages(content in the log message) in Datadog to one of the slack channel? I have tried using the monitors. But there it just provides an alert if log messages exceeds the provided threshold level. I need the exact log…
8
votes
1 answer

How to get the number of different values of a metric's tag in Datadog

I have a metric which has a tag with lots of different values (the value is a file name). How can I create a query that determines the number of different values of that tag exist on a metric? For example if 4 metrics are received during a time…
Bowen Jin
  • 81
  • 1
  • 2
  • 2
8
votes
1 answer

Can I export Datadog dashboards via Datadog REST API?

Is it possible to export or download Datadog dashboards via Datadog REST API? Export and update of Datadog Monitors works fine. I need the same functionality for dashboards.
Mirko Ebert
  • 1,349
  • 1
  • 18
  • 36
8
votes
1 answer

Sending ddtrace from docker

I'm trying to learn how to use docker and am having some troubles. I'm using a docker-compose.yaml file for running a python script that connects to a mysql container and I'm trying to use ddtrace to send traces to datadog. I'm using the following…
TheStrangeQuark
  • 2,257
  • 5
  • 31
  • 58
8
votes
3 answers

Restrict access to nginx server location to a specific Docker container with "allow" directive

Edit: Tarun's answer does exactly what I asked for. Eugen's answer is also a very good solution. I ended up accepting Tarun's answer as correct, but using Eugen's. If you have a similar issue and are worried about other containers accessing the…
nrlakin
  • 5,234
  • 3
  • 16
  • 27
8
votes
3 answers

How to count events in Datadog Screenboard

I don't understand the difference between events and metrics in DataDog. I'm trying to create a count indicator in my dashboard so I can now how many times some type of event has happened. There is a lot of events named some.event.name, but no…
mariowise
  • 2,167
  • 2
  • 21
  • 34
8
votes
2 answers

Modify scale of Datadog metric

I have a time series presenting time values like this one: I want to change the y-axis to represent hours instead of milliseconds, i.e. divide by 3600. Any idea how to do it?
tashuhka
  • 5,028
  • 4
  • 45
  • 64
7
votes
2 answers

How do I query DataDog for a phrase in the stack trace?

DataDog is so useless in its querying and its intuitiveness ... I'm looking for a custom exception in the stack trace. I found individual log entries in the last 18 hours that contain my exception class name, but attempting to write a log query that…
barclay
  • 4,362
  • 9
  • 48
  • 68
7
votes
0 answers

String interpolation with the name of metric in the Datadog query

There are a bunch of custom metrics that looks like: metric.name.key1 metric.name.key2 ... There is a template variables dropdown (https://docs.datadoghq.com/dashboards/template_variables/) on the dashboard that contains all keys. (Name of the…
Ihor Rybak
  • 3,091
  • 2
  • 25
  • 32
7
votes
4 answers

How to determine the time Node.js spends to send an HTTP response body?

My current setup involves a Node.js web application using Express.js. I am using DataDog's dd-tracer to measure the time Node.js spends for particular method invocations as part of my APM solution. I would like to know if it is possible to measure…
Martin Löper
  • 6,471
  • 1
  • 16
  • 40
1
2
3
70 71