Skip to content

Commit

Permalink
Version 0.0.13
Browse files Browse the repository at this point in the history
Added ManicTime Web/Desktop field and set applicationName accordingly
Added ManicTime support for user switching
Fixed ManicTime filter in query instead of after (performance boost)
Update system.yml for manictime only
  • Loading branch information
shacharmo committed Aug 22, 2020
1 parent c1e349e commit 8312491
Show file tree
Hide file tree
Showing 4 changed files with 262 additions and 111 deletions.
4 changes: 2 additions & 2 deletions metricbeat/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

make collect
make
go build -o metricbeat_0.0.11 main.go
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc go build -o metricbeat_0.0.11.exe main.go
go build -o metricbeat_0.0.13 main.go
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc go build -o metricbeat_0.0.13.exe main.go
112 changes: 99 additions & 13 deletions metricbeat/metricbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,45 @@
# You can find the full configuration reference here:
# https://www.elastic.co/guide/en/beats/metricbeat/index.html

#================================= Paths ======================================

# The home path for the Metricbeat installation. This is the default base path
# for all other path settings and for miscellaneous files that come with the
# distribution (for example, the sample dashboards).
# If not set by a CLI flag or in the configuration file, the default for the
# home path is the location of the binary.
#path.home: /metricbeat-7.4.1-linux-x86_64

# The configuration path for the Metricbeat installation. This is the default
# base path for configuration files, including the main YAML configuration file
# and the Elasticsearch template file. If not set by a CLI flag or in the
# configuration file, the default for the configuration path is the home path.
#path.config: ${path.home}

# The data path for the Metricbeat installation. This is the default base path
# for all the files in which Metricbeat needs to store its data. If not set by a
# CLI flag or in the configuration file, the default for the data path is a data
# subdirectory inside the home path.
#path.data: ${path.home}/data
#path.data: ${path.home}/data

# The logs path for a Metricbeat installation. This is the default location for
# the Beat's log files. If not set by a CLI flag or in the configuration file,
# the default for the logs path is a logs subdirectory inside the home path.
#path.logs: ${path.home}/logs
path.logs: ${path.home}/logs

#========================== Modules configuration ============================

metricbeat.config.modules:
# Glob pattern for configuration loading
path: ${path.config}/modules.d/*.yml

# Set to true to enable config reloading
reload.enabled: false
reload.enabled: true

# Period on which files under path should be checked for changes
#reload.period: 10s
reload.period: 60s

#==================== Elasticsearch template setting ==========================

Expand All @@ -38,8 +66,12 @@ setup.template.settings:

# Optional fields that you can specify to add additional information to the
# output.
fields_under_root: true
#fields:
# env: staging
# city: ${city}
# neighborhood: ${neighborhood}
# branch: ${branch}
# title: ${title}


#============================== Dashboards =====================================
Expand Down Expand Up @@ -88,23 +120,68 @@ setup.kibana:

# Configure what output to use when sending the data collected by the beat.

#------------------------------- File output -----------------------------------
#output.file:
# Boolean flag to enable or disable the output module.
#enabled: true

# Configure JSON encoding
#codec.json:
# Pretty-print JSON event
#pretty: false

# Configure escaping HTML symbols in strings.
#escape_html: false

# Path to the directory where to save the generated files. The option is
# mandatory.
#path: ${path.home}/output

# Name of the generated files. The default is `metricbeat` and it generates
# files: `metricbeat`, `metricbeat.1`, `metricbeat.2`, etc.
#filename: metricbeat.out.json.log

# Maximum size in kilobytes of each file. When this size is reached, and on
# every Metricbeat restart, the files are rotated. The default value is 10240
# kB.
#rotate_every_kb: 10000

# Maximum number of files under path. When this number of files is reached,
# the oldest file is deleted and the rest are shifted from last to first. The
# default is 7 files.
#number_of_files: 9

# Permissions to use for file creation. The default is 0600.
#permissions: 0666

#----------------------------- Console output ---------------------------------
#output.console:
# Boolean flag to enable or disable the output module.
#enabled: true

# Configure JSON encoding
#codec.json:
# Pretty-print JSON event
#pretty: false

# Configure escaping HTML symbols in strings.
#escape_html: false

#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
#output.elasticsearch:
# Array of hosts to connect to.
hosts: ["localhost:9200"]
#hosts: ["localhost:9200"]

# Protocol - either `http` (default) or `https`.
# Optional protocol and basic auth credentials.
#protocol: "https"

# Authentication credentials - either API key or username/password.
#api_key: "id:api_key"
#username: "elastic"
#password: "changeme"

#----------------------------- Logstash output --------------------------------
#output.logstash:
output.logstash:
# The Logstash hosts
#hosts: ["localhost:5044"]
# hosts: ["logstash01.westus2.cloudapp.azure.com:5044"]
hosts: ["localhost:5000"]

# Optional SSL. By default is off.
# List of root certificates for HTTPS server verifications
Expand All @@ -123,8 +200,6 @@ output.elasticsearch:
processors:
- add_host_metadata: ~
- add_cloud_metadata: ~
- add_docker_metadata: ~
- add_kubernetes_metadata: ~

#================================ Logging =====================================

Expand Down Expand Up @@ -163,3 +238,14 @@ processors:

# This allows to enable 6.7 migration aliases
#migration.6_to_7.enabled: true

#chrome extension metricset settings
chrome_extension_metricset_settings:
port: 8006
showInMin: true

manictime_metricset_settings:
path: C:\Users\%USER%\AppData\Local\Finkit\ManicTime\ManicTimeReports.db
defaultUser: default
webKeys:
- chrome.exe;google chrome
Loading

0 comments on commit 8312491

Please sign in to comment.