Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mon 14867 warp10v2 (develop) #585

Closed

Conversation

kduret
Copy link
Contributor

@kduret kduret commented Feb 24, 2023

Description

refacto warp10 stream connector

Type of change

  • Patch fixing an issue (non-breaking change)
  • New functionality (non-breaking change)
  • Breaking change (patch or feature) that might cause side effects breaking part of the Software

Target serie

  • 21.04.x
  • 21.10.x
  • 22.04.x
  • 22.10.x (master)

How this pull request can be tested ?

use the stream connector and try to send metrics to warp10

Checklist

Community contributors & Centreon team

  • I have followed the coding style guidelines provided by Centreon
  • I have commented my code, especially new classes, functions or any legacy code modified. (docblock)
  • I have commented my code, especially hard-to-understand areas of the PR.
  • I have rebased my development branch on the base branch (master, maintenance).

bouda1 and others added 30 commits April 10, 2018 13:30
This script uses neb events and not metrics.
fix(doc): precisions on script names.
This version works with metrics events.
This stream connector will only work with centreon-broker-18.10.1
that contains the new parse_perfdata function.
change to lastest instead of 2.8.X
* enh(doc): improve splunk part
Thanks to David Guenault, this bug is fixed.
There was previously a bugged parse_perfdata function.
Now we use then centreon-broker one which is much better.
* Add Service Now stream connector
* add NDO output

* add OMI stream connector

* rename file

* add url configuration and improve readme
* Properly handle write return value

* Workaround duplicate events

* Add an option to skip anon events

* Improve documentation
…er, change authen method (#14)

* enh(influxdb-neb): add log_path and influxdb_retention_policy parameter, change authen method

Add a log_path parameter to provide path to log file
Add a influxdb_retention_policy parameter to provide RP when writing to DB
Change the way credentials are provided in request

* enh(doc): add new parameters for influxdb-neb script
* feat(elastic-neb): add elastic-neb.lua script

Handles both metrics and statuses

* feat(doc): add elastic-neb section

* enh(elastic-neb): add min/max/uom to metrics index

* feat(doc): update elastic-neb section
tanguyvda and others added 25 commits March 16, 2022 14:05
* add new output management options

* better pagerduty event format
this was still the old add() method so it wasn't adding the event to the right queue and nothing was flushed at all
* fix requires in test_kafka script

* fix rockspec again

* update kafka and fix readme

* typos

* (stream/lib) sc_flush: new queuing system

* (stream/connectors) compat patch for queue system

* (stream/documentation) add doc for new params

* (stream/lib): sc_flush - fix bad param name

* shaping flush methods

* naming + missing parameter

* better useless event management with flush

* avoid calling same method twice

* update all apiv2 sc

* add xml_escape method

* add rockspec file

* add doc for xml escape method

* prettier markdown

* fix host_status event dedup

* add new output management options

* better pagerduty event format

* (stream/events): add datadog sc + spec release 2.1

* delete rock spec

* + replace success by info

Co-authored-by: Simon Bomm <[email protected]>
* fix requires in test_kafka script

* fix rockspec again

* update kafka and fix readme

* typos

* (stream/lib) sc_flush: new queuing system

* (stream/connectors) compat patch for queue system

* (stream/documentation) add doc for new params

* (stream/lib): sc_flush - fix bad param name

* shaping flush methods

* naming + missing parameter

* better useless event management with flush

* avoid calling same method twice

* update all apiv2 sc

* add xml_escape method

* add rockspec file

* add doc for xml escape method

* prettier markdown

* fix host_status event dedup

* add new output management options

* better pagerduty event format

* add a dumper method

* add some metric stuff

* metrics first tests

* fixes datadog metrics bugs

* fix log message sc_event

* add new params doc + fix md

* improve doc + more doc

* simplify sc_metrics

* add new standard parameters

* better dumper display

* new snow stream connector

* improve snow sc

* metric v2 splunk metrics

* debug + params for datadog metrics

* finishing metrics sc

* forgot replacement character

* "better" splunk metrics event format

* revert change

* add default buffer size

* fix datadog metric name regex
* manage bbdo3 and bddo2 compat

* add comment

* streamline compat idea

* fix missing state in new bbdo elements

* force var type for bbdo_version

* fix downtime state bbdo3

* compat patch for ack

* fix bad cache handling

* fix bad boolean for ack
* add spec file

* fix bad spec file name
* add logstash-events stream connector

* fix communication protocol
* (stream/lib) add output limit

* fixing my dumb mistakes

* fix bad variable scope
* add new escape method + refacto other ones

* always put cache data in event + fix poller cache

* add group macro handling (hg, sg, bv)

* add new transformation flags

* add doc for lua_regex_escape method

* add new macros documentation

* put new methods into readme

* fix wrong link

* add trim function

* fix many bugs with macro conversion

* add trim documentation

* add doc for new macros method

* add new methods in the readme

* remove testing debug
* add new custom_code_file param handling

* add custom code execution

* load custom code in each api v2 SC

* put custom_code in the params table

* fix bad  logger instance name

* Add custom code documentation

* avoid breaking change

* add new param in the doc

* imrpove doc

* wording

* better code block

* Apply suggestions from code review

* typos

Co-authored-by: Simon Bomm <[email protected]>
@kduret
Copy link
Contributor Author

kduret commented Feb 24, 2023

@kduret kduret closed this Feb 24, 2023
@kduret kduret deleted the centreon-stream-connector-scripts-MON-14867-warp10v2 branch February 24, 2023 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.