Documentation ¶
Index ¶
- Constants
- Variables
- func GetRequestPath(params map[string]interface{}) (string, error)
- func GetTemplateParsedString(urlParams map[string]interface{}, templateString string) (string, error)
- func GetValidatedGraphiteSupportedTime(time interface{}, graphiteTimeTemplate string) (string, error)
- func HttpResponse(w http.ResponseWriter, status_code int, msg string, args ...string)
- func Matches(key string, keys []string) bool
- func ValidateRequest(params map[string]interface{}) error
- type GraphiteManager
- func (tsdbm GraphiteManager) GetInstantValue(node string, resource_name string) (float64, error)
- func (tsdbm GraphiteManager) GetInstantValuesAggregation(node string, resource_name string, exceptionResources []string) (aggregatedValue float64, err error, isCompleteFailure bool)
- func (tsdbm GraphiteManager) GetResourceName(params map[string]interface{}) (string, error)
- func (tsdbm GraphiteManager) PushToDb(metrics map[string]map[string]string, hostName string, port int) error
- func (tsdbm GraphiteManager) QueryDB(params map[string]interface{}) (interface{}, error)
- func (tsdbm GraphiteManager) QueryMonitoringDB(urlStr string, w http.ResponseWriter, r *http.Request) error
- type GraphiteMetric
- type GraphiteMetrics
Constants ¶
View Source
const (
TimeSeriesDBManagerName = "GraphiteManager"
)
Variables ¶
View Source
var SupportedInputTimeFormats = []string{
"2006-01-02T15:04:05.000Z",
"2006-01-02",
"20060102",
}
Functions ¶
func GetRequestPath ¶
func GetTemplateParsedString ¶
func HttpResponse ¶
func HttpResponse(w http.ResponseWriter, status_code int, msg string, args ...string)
func ValidateRequest ¶
Types ¶
type GraphiteManager ¶
type GraphiteManager struct { }
func NewGraphiteManager ¶
func NewGraphiteManager(config io.Reader) (*GraphiteManager, error)
func (GraphiteManager) GetInstantValue ¶
func (tsdbm GraphiteManager) GetInstantValue(node string, resource_name string) (float64, error)
func (GraphiteManager) GetInstantValuesAggregation ¶
func (GraphiteManager) GetResourceName ¶
func (tsdbm GraphiteManager) GetResourceName(params map[string]interface{}) (string, error)
func (GraphiteManager) PushToDb ¶
func (tsdbm GraphiteManager) PushToDb(metrics map[string]map[string]string, hostName string, port int) error
This method takes map[string]map[string]string ==> map[metric/table name]map[timestamp]value
func (GraphiteManager) QueryDB ¶
func (tsdbm GraphiteManager) QueryDB(params map[string]interface{}) (interface{}, error)
func (GraphiteManager) QueryMonitoringDB ¶
func (tsdbm GraphiteManager) QueryMonitoringDB(urlStr string, w http.ResponseWriter, r *http.Request) error
type GraphiteMetric ¶
type GraphiteMetric struct { Target string `json:"target"` Stats stats `json:"datapoints"` }
type GraphiteMetrics ¶
type GraphiteMetrics []GraphiteMetric
Click to show internal directories.
Click to hide internal directories.