Greetings to all. The task is to stick monitoring to one application. There is a thing that sends metrics, that's all right. But there is a parameter that needs to be stored not like everything else. Namely: the number of requests. Those. the request arrives, it is processed and the following metrics are sent to Graphite: 1) the time spent on the external request; 2) application running time 3) the fact of launching the application

In this Graphite, I need to somehow count the number of these launches. I have already configured schemas and aggregation too, but why the hell can't he do what I want from him? The very fact of launching is fixed as follows: just a unit is sent to the def. metric and all. Then I suppose I need to count the number of these units every hour and display it on a chart, but of course it does not.

storage-schemas.conf

# Schema definitions for Whisper files. Entries are scanned in order, # and first match wins. This file is scanned for changes every 60 seconds. # # [name] # pattern = regex # retentions = timePerPoint:timeToStore, timePerPoint:timeToStore, ... # Carbon's internal metrics. This entry should match what is specified in # CARBON_METRIC_PREFIX and CARBON_METRIC_INTERVAL settings [carbon] pattern = ^carbon\. retentions = 60:90d [app] pattern = ^app\.api\.* retentions = 10s:10m,10m:30d,60m:1y 

storage-aggregation.conf

 [collectd] pattern = ^collectd\. xFilesFactor = 0.7 aggregationMethod = max [count] pattern = \.count$ xFilesFactor = 0 aggregationMethod = sum [default] pattern = .* xFilesFactor = 0.5 aggregationMethod = average 

How do I set it up or what functions to apply to the metric already on the graph, so that it counts the number of these units as a result period of time (it depends on the scale of the schedule and should not be indicated in the configs or anywhere else)? The functions that I apply to this metric give out complete nonsense. The same countSeries, sumSeries, hitcount, etc.

Generally I am surprised. So little information about this Graphite. Everywhere they write that it is so all scalable and simple, that here take a straight and rejoice. Everywhere they write about its setting in different stacks and environments, BUT no one describes how certain problems are solved, there are no examples. In general, I ask for help, I have already very strongly burned away from him in the last few days, because I cannot solve such a simple problem with it.

    0