Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
impalad-metrics.h
Go to the documentation of this file.
1 // Copyright 2012 Cloudera Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 
16 #ifndef IMPALA_UTIL_IMPALAD_METRICS_H
17 #define IMPALA_UTIL_IMPALAD_METRICS_H
18 
19 #include "util/metrics.h"
20 
21 namespace impala {
22 
25  public:
27  static const char* IMPALA_SERVER_START_TIME;
28 
30  static const char* IMPALA_SERVER_VERSION;
31 
33  static const char* IMPALA_SERVER_READY;
34 
37  static const char* IMPALA_SERVER_NUM_QUERIES;
38 
41  static const char* IMPALA_SERVER_NUM_FRAGMENTS;
42 
45 
48 
50  static const char* TOTAL_SCAN_RANGES_PROCESSED;
51 
54 
56  static const char* MEM_POOL_TOTAL_BYTES;
57 
59  static const char* HASH_TABLE_TOTAL_BYTES;
60 
62  static const char* IO_MGR_NUM_OPEN_FILES;
63 
65  static const char* IO_MGR_NUM_BUFFERS;
66 
68  static const char* IO_MGR_TOTAL_BYTES;
69 
71  static const char* IO_MGR_NUM_UNUSED_BUFFERS;
72 
74  static const char* IO_MGR_BYTES_READ;
75 
77  static const char* IO_MGR_LOCAL_BYTES_READ;
78 
80  static const char* IO_MGR_SHORT_CIRCUIT_BYTES_READ;
81 
83  static const char* IO_MGR_CACHED_BYTES_READ;
84 
86  static const char* IO_MGR_BYTES_WRITTEN;
87 
89  static const char* CATALOG_NUM_DBS;
90 
92  static const char* CATALOG_NUM_TABLES;
93 
98  static const char* CATALOG_READY;
99 
101  static const char* NUM_FILES_OPEN_FOR_INSERT;
102 
104  static const char* NUM_SESSIONS_EXPIRED;
105 
107  static const char* NUM_QUERIES_EXPIRED;
108 
110  static const char* NUM_QUERIES_SPILLED;
111 
113  static const char* RESULTSET_CACHE_TOTAL_NUM_ROWS;
114 
116  static const char* RESULTSET_CACHE_TOTAL_BYTES;
117 };
118 
124  public:
125  // Counters
134  // Gauges
152  // Properties
157 
158  // Creates and initializes all metrics above in 'm'.
159  static void CreateMetrics(MetricGroup* m);
160 };
161 
162 
163 };
164 
165 #endif
static const char * MEM_POOL_TOTAL_BYTES
Number of bytes currently in use across all mem pools.
static const char * IMPALA_SERVER_NUM_OPEN_BEESWAX_SESSIONS
Number of open Beeswax sessions.
static IntGauge * IMPALA_SERVER_NUM_OPEN_HS2_SESSIONS
static IntGauge * RESULTSET_CACHE_TOTAL_NUM_ROWS
Contains the keys (strings) for impala metrics.
static StringProperty * IMPALA_SERVER_VERSION
static IntGauge * IO_MGR_TOTAL_BYTES
class SimpleMetric< std::string, TMetricKind::PROPERTY > StringProperty
Definition: metrics.h:323
static const char * IO_MGR_SHORT_CIRCUIT_BYTES_READ
Total number of short-circuit bytes read by the io mgr.
static const char * IO_MGR_CACHED_BYTES_READ
Total number of cached bytes read by the io mgr.
static void CreateMetrics(MetricGroup *m)
static const char * NUM_QUERIES_EXPIRED
Number of queries expired due to inactivity.
static IntGauge * IO_MGR_NUM_UNUSED_BUFFERS
static IntGauge * IO_MGR_BYTES_WRITTEN
class SimpleMetric< int64_t, TMetricKind::COUNTER > IntCounter
Definition: metrics.h:320
static const char * CATALOG_NUM_DBS
Number of DBs in the catalog.
static IntGauge * IO_MGR_NUM_OPEN_FILES
static IntGauge * MEM_POOL_TOTAL_BYTES
MetricGroups may be organised hierarchically as a tree.
Definition: metrics.h:200
static const char * TOTAL_SCAN_RANGES_PROCESSED
Number of scan ranges processed.
static const char * IMPALA_SERVER_START_TIME
Local time that the server started.
static const char * RESULTSET_CACHE_TOTAL_NUM_ROWS
Total number of rows cached to support HS2 FETCH_FIRST.
static const char * IMPALA_SERVER_NUM_QUERIES
static IntGauge * IO_MGR_BYTES_READ
static const char * IMPALA_SERVER_READY
True if Impala has finished initialisation.
static const char * IMPALA_SERVER_VERSION
Full version string of the Impala server.
static const char * IO_MGR_LOCAL_BYTES_READ
Total number of local bytes read by the io mgr.
static const char * IO_MGR_NUM_OPEN_FILES
Number of files currently opened by the io mgr.
static const char * RESULTSET_CACHE_TOTAL_BYTES
Total bytes consumed for rows cached to support HS2 FETCH_FIRST.
static IntGauge * CATALOG_NUM_TABLES
static const char * IO_MGR_NUM_UNUSED_BUFFERS
Number of IO buffers that are currently unused (and can be GC'ed)
static const char * IO_MGR_NUM_BUFFERS
Number of IO buffers allocated by the io mgr.
static IntGauge * RESULTSET_CACHE_TOTAL_BYTES
static IntGauge * NUM_FILES_OPEN_FOR_INSERT
static const char * HASH_TABLE_TOTAL_BYTES
Number of bytes currently in use across all hash tables.
static IntCounter * NUM_RANGES_MISSING_VOLUME_ID
static BooleanProperty * CATALOG_READY
static IntCounter * IMPALA_SERVER_NUM_QUERIES
static const char * IO_MGR_TOTAL_BYTES
Number of bytes used by IO buffers (used and unused).
static IntCounter * NUM_RANGES_PROCESSED
static IntCounter * NUM_SESSIONS_EXPIRED
static IntGauge * IO_MGR_SHORT_CIRCUIT_BYTES_READ
static IntCounter * IMPALA_SERVER_NUM_FRAGMENTS
static IntCounter * NUM_QUERIES_SPILLED
static const char * CATALOG_READY
static const char * CATALOG_NUM_TABLES
Number of tables in the catalog.
static const char * IO_MGR_BYTES_READ
Total number of bytes read by the io mgr.
static IntCounter * NUM_QUERIES_EXPIRED
static IntGauge * IO_MGR_CACHED_BYTES_READ
static const char * NUM_SCAN_RANGES_MISSING_VOLUME_ID
Number of scan ranges with missing volume id metadata.
static IntGauge * IO_MGR_NUM_BUFFERS
static BooleanProperty * IMPALA_SERVER_READY
class SimpleMetric< bool, TMetricKind::PROPERTY > BooleanProperty
Definition: metrics.h:322
static IntGauge * IMPALA_SERVER_NUM_OPEN_BEESWAX_SESSIONS
static StringProperty * IMPALA_SERVER_START_TIME
static const char * NUM_QUERIES_SPILLED
Number of queries that spilled.
static const char * IO_MGR_BYTES_WRITTEN
Total number of bytes written to disk by the io mgr (for spilling)
static const char * IMPALA_SERVER_NUM_FRAGMENTS
static IntGauge * HASH_TABLE_TOTAL_BYTES
static IntGauge * IO_MGR_LOCAL_BYTES_READ
static const char * NUM_FILES_OPEN_FOR_INSERT
Number of files open for insert.
static IntGauge * CATALOG_NUM_DBS
static const char * IMPALA_SERVER_NUM_OPEN_HS2_SESSIONS
Number of open HiveServer2 sessions.
static const char * NUM_SESSIONS_EXPIRED
Number of sessions expired due to inactivity.