Skip to content

Commit

Permalink
feat: display top paths/resources in analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
aelamrani authored and brasseld committed Jul 5, 2018
1 parent 126f1e2 commit e4685e4
Show file tree
Hide file tree
Showing 11 changed files with 164 additions and 610 deletions.
Expand Up @@ -51,4 +51,8 @@
<#if metrics.getMessage()??>
,"message":"${metrics.getMessage()}"
</#if>
,"path":"${metrics.getPath()}"
<#if metrics.getMappedPath()??>
,"mapped-path":"${metrics.getMappedPath()}"
</#if>
}</@compress>
@@ -1,112 +1,124 @@
{
"settings": {
"index.number_of_shards":${numberOfShards},
"index.number_of_replicas":${numberOfReplicas},
"index.refresh_interval": "${refreshInterval}"
},
"template": "${indexName}-*",
"mappings": {
"request": {
"properties": {
"@timestamp": {
"format": "strict_date_optional_time||epoch_millis",
"type": "date"
},
"api": {
"index": "not_analyzed",
"type": "string"
},
"api-key": {
"index": "not_analyzed",
"type": "string"
},
"api-response-time": {
"type": "integer"
},
"application": {
"index": "not_analyzed",
"type": "string"
},
"client-request-headers": {
"enabled": false,
"type": "object"
},
"client-response-headers": {
"enabled": false,
"type": "object"
},
"endpoint": {
"index": "not_analyzed",
"type": "string"
},
"gateway": {
"index": "not_analyzed",
"type": "string"
},
"hostname": {
"index": "not_analyzed",
"type": "string"
},
"local-address": {
"index": "not_analyzed",
"type": "string"
},
"method": {
"index": "not_analyzed",
"type": "string"
},
"plan": {
"index": "not_analyzed",
"type": "string"
},
"proxy-latency": {
"type": "integer"
},
"proxy-request-headers": {
"enabled": false,
"type": "object"
},
"proxy-response-headers": {
"enabled": false,
"type": "object"
},
"remote-address": {
"index": "not_analyzed",
"type": "string"
},
"request-content-length": {
"type": "integer"
},
"response-content-length": {
"type": "integer"
},
"response-time": {
"type": "integer"
},
"status": {
"type": "short"
},
"subscription": {
"index": "not_analyzed",
"type": "string"
},
"tenant": {
"index": "not_analyzed",
"type": "string"
},
"transaction": {
"index": "not_analyzed",
"type": "string"
},
"uri": {
"index": "not_analyzed",
"type": "string"
},
"user": {
"index": "not_analyzed",
"type": "string"
}
}
}
}
"settings": {
"index.number_of_shards": $ {
numberOfShards
},
"index.number_of_replicas": $ {
numberOfReplicas
},
"index.refresh_interval": "${refreshInterval}"
},
"template": "${indexName}-*",
"mappings": {
"request": {
"properties": {
"@timestamp": {
"format": "strict_date_optional_time||epoch_millis",
"type": "date"
},
"api": {
"index": "not_analyzed",
"type": "string"
},
"api-key": {
"index": "not_analyzed",
"type": "string"
},
"api-response-time": {
"type": "integer"
},
"application": {
"index": "not_analyzed",
"type": "string"
},
"client-request-headers": {
"enabled": false,
"type": "object"
},
"client-response-headers": {
"enabled": false,
"type": "object"
},
"endpoint": {
"index": "not_analyzed",
"type": "string"
},
"gateway": {
"index": "not_analyzed",
"type": "string"
},
"hostname": {
"index": "not_analyzed",
"type": "string"
},
"local-address": {
"index": "not_analyzed",
"type": "string"
},
"method": {
"index": "not_analyzed",
"type": "string"
},
"plan": {
"index": "not_analyzed",
"type": "string"
},
"proxy-latency": {
"type": "integer"
},
"proxy-request-headers": {
"enabled": false,
"type": "object"
},
"proxy-response-headers": {
"enabled": false,
"type": "object"
},
"remote-address": {
"index": "not_analyzed",
"type": "string"
},
"request-content-length": {
"type": "integer"
},
"response-content-length": {
"type": "integer"
},
"response-time": {
"type": "integer"
},
"status": {
"type": "short"
},
"subscription": {
"index": "not_analyzed",
"type": "string"
},
"tenant": {
"index": "not_analyzed",
"type": "string"
},
"transaction": {
"index": "not_analyzed",
"type": "string"
},
"uri": {
"index": "not_analyzed",
"type": "string"
},
"user": {
"index": "not_analyzed",
"type": "string"
},
"path": {
"index": "not_analyzed",
"type": "string"
},
"mapped-path": {
"index": "not_analyzed",
"type": "string"
}
}
}
}
}
Expand Up @@ -300,6 +300,14 @@
"user": {
"type": "string",
"index": "not_analyzed"
},
"path": {
"type": "string",
"index": "not_analyzed"
},
"mapped-path": {
"type": "string",
"index": "not_analyzed"
}
}
},
Expand Down
Expand Up @@ -51,4 +51,8 @@
<#if metrics.getMessage()??>
,"message":"${metrics.getMessage()}"
</#if>
,"path":"${metrics.getPath()}"
<#if metrics.getMappedPath()??>
,"mapped-path":"${metrics.getMappedPath()}"
</#if>
}</@compress>
Expand Up @@ -98,6 +98,12 @@
},
"uri": {
"type": "keyword"
},
"path": {
"type": "keyword"
},
"mapped-path": {
"type": "keyword"
}
}
}
Expand Down
Expand Up @@ -92,6 +92,12 @@
},
"uri": {
"type": "keyword"
},
"path": {
"type": "keyword"
},
"mapped-path": {
"type": "keyword"
}
}
},
Expand Down
Expand Up @@ -43,4 +43,8 @@
<#if metrics.getMessage()??>
,"message":"${metrics.getMessage()}"
</#if>
,"path":"${metrics.getPath()}"
<#if metrics.getMappedPath()??>
,"mapped-path":"${metrics.getMappedPath()}"
</#if>
}</@compress>
Expand Up @@ -98,6 +98,12 @@
},
"uri": {
"type": "keyword"
},
"path": {
"type": "keyword"
},
"mapped-path": {
"type": "keyword"
}
}
}
Expand Down
Expand Up @@ -51,4 +51,8 @@
<#if metrics.getMessage()??>
,"message":"${metrics.getMessage()}"
</#if>
,"path":"${metrics.getPath()}"
<#if metrics.getMappedPath()??>
,"mapped-path":"${metrics.getMappedPath()}"
</#if>
}</@compress>

0 comments on commit e4685e4

Please sign in to comment.